Type Definition roccat_vulcan_api_rs::Value[][src]

type Value = Saturation;
Expand description

Color value (also called brigthness). Gauranties that the value is between 0 and 1.

Used by ColorRgb::new_hsv.

Examlpe

use roccat_vulcan_api_rs::Value;

assert_eq!(Value::new(0.5_f64).unwrap().value(), 0.5_f64);
assert_eq!(Value::new(1.5_f64), None);