Pote — canonical color types, default palette, and top-level helpers.
This module defines the core color type definitions used throughout the entire library and provides access to the built-in default color palette.
Summary
Functions
Returns a specific color by name (alias for get_color/1).
Checks if a color name exists in the default palette.
Returns all available color names.
Returns the default color palette.
Looks up a color by atom name. Returns RGB tuple or nil.
Types
@type argb() :: {non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer()}
@type color_output() :: rgb() | nil
@type hex() :: String.t()
@type rgb() :: {non_neg_integer(), non_neg_integer(), non_neg_integer()}
@type xterm256() :: 0..255
Functions
Returns a specific color by name (alias for get_color/1).
Checks if a color name exists in the default palette.
@spec color_names() :: [atom()]
Returns all available color names.
@spec default_colors() :: map()
Returns the default color palette.
Looks up a color by atom name. Returns RGB tuple or nil.