class

Blahaj::Color

Inherits Reference / Object

Constructors

new(r : UInt8, g : UInt8, b : UInt8)

Initialize Blahaj::Color using UInt8 RGB values

Source
new(r : Int32, g : Int32, b : Int32)

Initialize Blahaj::Color using Int32 RGB values

Source
new(hex : String)

Initialize Blahaj::Color using hex string

Source

Instance methods

color
Source
foreground

Returns the foreground color based on whether the color is dark or light

Source
hex

Hex string

Source