class
Sheen::Color
- Sheen::Color
- Sheen::TerminalColor
- Reference
- Object
Overview
A color from a hex string (eg #FF0000) or ANSI256 index string (eg 63).
Defined in:
sheen/color.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#resolve(renderer : Renderer) : Foundation::SGRColor | Nil
Resolves to the SGR color for renderer's profile, or nil for no color
- #value : String
Instance methods inherited from class Sheen::TerminalColor
resolve(renderer : Renderer) : Foundation::SGRColor | Nil
resolve
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
Description copied from class Sheen::TerminalColor
Resolves to the SGR color for renderer's profile, or nil for no color