Skip to main content

color_u8

Macro color_u8 

Source
macro_rules! color_u8 {
    ($r:expr, $g:expr, $b:expr, $a:expr) => { ... };
}
Expand description

Build a color from 4 components of 0..255 values. This was a temporary solution because Color::from_rgba was not a const fn due to this issue waiting to be resolved. It is not needed anymore.