Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature "random" for random color generation using
rand
crate
Implement Distribution for Standard from rand for all color types, LabHue, and RgbHue Implement SampleUniform and UniformSampler for all color types, LabHue, and RgbHue Color sampling is supported for `gen`, `gen_range`, and `Uniform`. Equations for cone sampling are placed in their own module and include unit tests. Hwb is implemented in terms of Hsv and wraps around the Hsv sampler and implementation. Co-authored-by: Erik Hedvall <erikwhedvall@gmail.com>
- Loading branch information
Showing
15 changed files
with
1,228 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.