struct

Ansi::HexColor

Inherits Struct < Value < Object

HexColor is a color that can be formatted as a hex string.

Constructors

new(value : String)
Source

Instance methods

hex

Hex returns the hex representation of the color.

Source
rgba

RGBA returns the red, green, blue and alpha components of the color.

Source
to_s

String returns the color as a hex string.

Source
value
Source