Function glm_color::rgb::gray [] [src]

pub fn gray(x: u8) -> Rgb

Constructs a Rgb value with given gray value x. All RGB channels are set to this value.

Equivalent to Rgb::rgb(x, x, x).