class

ColorMap

Inherits Reference < Object

Constructors

new(file)

Instance methods

color_map
color_map=(color_map : Hash(Tuple(Float64, Float64, Float64), UInt8))
find_closest_ansi(r : UInt8, g : UInt8, b : UInt8) : UInt8
find_furthest_color_from_background(r_1 : UInt8, g_1 : UInt8, b_1 : UInt8, r_2 : UInt8, g_2 : UInt8, b_2 : UInt8, background_r : UInt8, background_g : UInt8, background_b : UInt8) : Colorize::Color256
get_contrast(r_1, g_1, b_1, r_2, g_2, b_2)
get_hex_color(s : String) : Colorize::Color256
get_lab_squared_distance(l, a, b, cl, ca, cb) : Float64
get_relative_luminance(r, g, b)
pick_contrast_colour(primary_r : UInt8, primary_g : UInt8, primary_b : UInt8, secondary_r : UInt8, secondary_g : UInt8, secondary_b : UInt8, background_r : UInt8, background_g : UInt8, background_b : UInt8, contrast_threshold : Float64)
rgb_to_xyz(r, g, b)
xyz_to_lab(x, y, z)