[−][src]Function cube_helix::color
pub fn color(
gamma: f64,
start: f64,
rotations: f64,
saturation: f64,
min: f64,
max: f64,
value: f64
) -> (u8, u8, u8)
Use cubehelix color calculation without CubeHelix struct.
Returns a tuple with three values (red: u8, green: u8, blue: u8)
Examples
use cube_helix::color; // Returns color (181, 104, 101) let color = color(1.0, 0.2, -1.5, 1.0, 0.0, 1.0, 0.5); assert_eq!(color.0, 181); assert_eq!(color.1, 104); assert_eq!(color.2, 101);