2 releases

0.1.1 Feb 20, 2019
0.1.0 Feb 10, 2019

#444 in Visualization

Download history 15/week @ 2024-02-20 2/week @ 2024-02-27 2/week @ 2024-03-26 23/week @ 2024-04-02

62 downloads per month

MIT license

12KB
164 lines

Dave Green's 'cubehelix' colour scheme.
See cubehelix homepage at:
https://www.mrao.cam.ac.uk/~dag/CUBEHELIX/
Calculation from:
http://astron-soc.in/bulletin/11June/289392011.pdf

Examples

use cube_helix::CubeHelix;
// Get default values
let ch: CubeHelix = Default::default();
// Returns color white: (255,255,255)
let colors = ch.get_color(1.0);

No runtime deps