class Sheen::Color

Overview

A color from a hex string (eg #FF0000) or ANSI256 index string (eg 63).

Defined in:

sheen/color.cr

Constructors

Instance Method Summary

Instance methods inherited from class Sheen::TerminalColor

resolve(renderer : Renderer) : Foundation::SGRColor | Nil resolve

Constructor Detail

def self.new(value : String) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def resolve(renderer : Renderer) : Foundation::SGRColor | Nil #
Description copied from class Sheen::TerminalColor

Resolves to the SGR color for renderer's profile, or nil for no color


[View source]
def value : String #

[View source]