View Source API Reference ColorPalette v0.1.3
Modules
Color Palette Functions
colors/0: A map between the color name (e.g.,:black) and theColorPalette.Colorstruct.ansi_color_codes/0- A list of all 256 ANSI color codescolor_groups_to_ansi_color_codes/0- A map between the color group and the ANSI color codesio_ansi_color_names/0- TheIO.ANSIcolors and their corresponding text contrast colors.reset/0- Delegates to theIO.ANSI.reset/0function.ansi_color_codes_to_color_names/0- A mapping betweenColorPalette.ANSIColorCodeand color namesfind_by_hex/1- Finds a color by its hex value.find_by_code/1- Finds a color by its ANSI code number (e.g., 0..255).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
Utility functions for building the ExDocs
Generates the guides for the ExDocs