gator library

Generate shades and tints from primary colors hex values for easy setup.

Classes

Color
An RGB color.
ConfigColor
A Color that is adapted from a configuration.
GatorCommand
Entry point for running the gator executable.
GatorConfig
The configuration that represents the YAML document.

Properties

argParser → ArgParser
The arg parser used for the gator entry point.
final

Functions

ansiColorizer({required Color color, required String message, required AnsiPen ansiPen}) String
Creates an ansi-compatible colored message from the color provided.
assertFactor(int factor) → void
Assert that the factor value is somewhere from 0 - 100. Will throw InvalidValueRangeException if not in range.
assertValue(int value) → void
Assert that the color value is somewhere from 0 - 255. Will throw InvalidValueRangeException if not in range.
colorShade(Color color, int i) Color
Shades a single Color and returns the new shaded value.
colorTint(Color color, int i) Color
Tints a single Color and returns the new tinted value.
createTintsAndShades(Iterable<ConfigColor> colors) Map<ConfigColor, List<Color>>
Generate all the shades and tints for the given colors
yamlDoc(File file) → YamlMap
Retrieve Yaml document with given path.

Exceptions / Errors

InvalidGatorConfigException
A generic exception for a given invalid GatorConfig. A generic exception for a given invalid GatorConfig.
InvalidValueRangeException
Exception for invalid integer ranges.