class Sheen::CompleteColor

Overview

Explicitly defined values per profile, with no automatic degradation between them. Each profile uses its own value as defined, and controls exactly how the color appears at every level of terminal support.

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(true_color : String, ansi256 : String, ansi : 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 ansi : String #

The value used for the basic 16color ANSI profile.


[View source]
def ansi256 : String #

The value used for the ANSI256 profile.


[View source]
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 true_color : String #

The value used for truecolor 24-bit profiles.


[View source]