View Source ColorPalette.Color (ColorPalette v0.1.6)
A struct which represents one of the 255 ANSI colors.
Summary
Types
@type name() :: atom()
@type source() :: :io_ansi | :colorhexa | :color_name_dot_com | :color_data_api
@type t() :: %ColorPalette.Color{ ansi_color_code: ColorPalette.ANSIColorCode.t(), closest_named_hex: String.t() | nil, distance_to_closest_named_hex: integer() | nil, exact_name_match?: boolean() | nil, name: name(), renamed?: boolean(), same_as: [name()], source: [source()], text_contrast_color: text_contrast_color() }
@type text_contrast_color() :: :white | :black
Functions
Link to this macro
def_color(name, hex, text_contrast_color, same_as, source, color_group, code)
View Source (macro)
Link to this macro