Crate kolorwheel

Crate kolorwheel 

Source
Expand description

§What is it?

This crate is designed to make it easy to create palettes for GUI applications.

With a slightly different API, for a slightly different platform: KolorWheel.js

The way of creating a palette is to specify a base color and some parameters that modifies the H, S, L values in the given spin mode and steps.

Full documentation is available at the project’s GitHub page: KolorWheel.rs

Thanks to H2CO3 for review and support!

Structs§

HslColor
HSL representation of a color
KolorWheel
The color wheel object, which emits series of HslColor color objects upon spin
RgbColor
RGB representation of a color, which can be implicitly converted (From/Into) to RgbColor

Enums§

ParseError
Possible errors when parsing HslColor from hex &str
SpinMacro
Shortcuts for some common transformations
SpinMode
Change modes to be applied on H/S/L channels