class
Sixteen::Color
- Sixteen::Color
- Reference
- Object
Defined in:
color.crConstructors
Instance Method Summary
- #b : UInt8
- #b=(b : UInt8)
-
#colorize : Colorize::ColorRGB
Turns
selfinto aColorize::Object. - #contrast(other : Color)
- #dark?
- #darker(amount : Float64 = 0.1)
- #g : UInt8
- #g=(g : UInt8)
- #hex : String
- #hex_bgr : String
- #hsl
- #hue2rgb(p, q, t)
- #light?
- #lighter(amount : Float64 = 0.1)
- #r : UInt8
- #r=(r : UInt8)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
def colorize : Colorize::ColorRGB
#
Description copied from module Colorize::ObjectExtensions
Turns self into a Colorize::Object.
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.