View Source API Reference ColorPalette v0.1.9
Modules
Color Palette Functions
colors/0
: A map between the color name (e.g.,:black
) and theColorPalette.Color
struct.ansi_color_codes/0
- A list of all 256 ANSI color codesreset/0
- Delegates to theIO.ANSI.reset/0
function.ansi_color_codes_to_color_names/0
- A mapping betweenColorPalette.ANSIColorCode
and color namesfind_by_hex/1
- Finds the colors with a certain hex value, e.g., "aabb00"find_by_code/1
- Finds the colors with a certain ANSI color code (e.g., 0..255).find_by_source/1
- Finds the colors that were obtained fromsource
, wheresource
is one ofColorPalette.source()
color_names/0
- Returns the list of all color names (e.g.,[:aero_blue, :alien_armpit, :alto, ...]
)random_color_name/0
- Returns a random color nameprint_using_random_color/2
- Prints a message in a random color
Colors
See below for the color descriptions. IMPORTANT Note that there are background versions for
each color; e.g., the function tea_green_background/0
(which is not listed below) is the
background color for
A struct which represents one of the 255 ANSI colors.
Represents one of the 11 color groups in the web extended colors
The functions in ColorPalette.DataConverter
are all pure functions for testability (as opposed
to those in ColorPalette
which reference statically compiled data).
Utility functions for building the ExDocs
Generates the guides for the ExDocs