Colorful
Constants
Constants for color comparisons
Class methods
Creates a random bright, "pimpy" color through a restricted HSV space.
Creates a random dark, "warm" color through a restricted HSV space.
Creates a random bright, "pimpy" color through restricted HCL space. This is slower than FastHappyColor but will likely give you colors which have the same "brightness" if you run it many times.
Utility used by Hxx color-spaces for interpolating between two angles in [0,360].
Helper functions for HCL conversions (polar Lab)
Helper functions for HSLuv/HPLuv conversions
Helper functions for LuvLCh conversions (polar Luv)
Constructs a Color from something implementing ColorConvertible (similar to Go's color.Color). Returns a tuple of {Color, Bool} where the bool indicates success (alpha > 0).
Yeah, windows-stype Foo, FooEx, screw you golang... Uses K-means to cluster the color-space and return the means of the clusters as a new palette of distinctive colors. Falls back to K-medoid if the mean happens to fall outside of the color-space, which can only happen if you specify a CheckColor function.
A wrapper which uses common parameters.
Sorted sorts a list of Color values. Sorting is not a well-defined operation for colors so the intention here primarily is to order colors so that the transition from one to the next is fairly smooth.
Creates a random dark, "warm" color through restricted HCL space. This is slower than FastWarmColor but will likely give you colors which have the same "warmness" if you run it many times.
Helper functions for RGB/XYZ conversions
Helper functions for OkLab conversions