#color-scheme #helix #graphics

cube_helix

Rust implementation of Dave Green's cubehelix colour scheme

2 releases

0.1.1 Feb 20, 2019
0.1.0 Feb 10, 2019

#550 in Visualization

Download history 1/week @ 2025-07-05

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