[][src]Function mandalas::util::proygbiv_to_rgb

pub fn proygbiv_to_rgb(proygbiv: [f64; 8]) -> [f64; 3]

Translate a PROYGBIV colour point into an RGB colour point according to sampling the svg on wikipedia.

Examples

assert_eq!(proygbiv_to_rgb([0f64, 0f64, 0f64, 0f64, 0f64, 0f64, 0f64, 0f64]), [0f64, 0f64, 0f64]);