class Blahaj::Color
- Blahaj::Color
- Reference
- Object
Defined in:
blahaj/color.crConstructors
-
.new(r : UInt8, g : UInt8, b : UInt8)
Initialize
Blahaj::Color
using UInt8 RGB values -
.new(r : Int32, g : Int32, b : Int32)
Initialize
Blahaj::Color
using Int32 RGB values -
.new(hex : String)
Initialize
Blahaj::Color
using hex string
Instance Method Summary
- #b : UInt8
- #color : Colorize::ColorRGB
-
#foreground : Colorize::ColorRGB
Returns the foreground color based on whether the color is dark or light
- #g : UInt8
-
#hex : String
Hex string
- #r : UInt8
Constructor Detail
Instance Method Detail
def foreground : Colorize::ColorRGB
#
Returns the foreground color based on whether the color is dark or light