/// An RGBA color with `f32` components.
#[derive(Clone, Copy, Debug, Default, PartialEq)]pubstructTyRgbaColor{pubr:f32,
pubg:f32,
pubb:f32,
puba:f32,
}implTyRgbaColor{/// Creates a new color from `r`, `g`, `b`, and `a` components.
pubfnnew(r:f32, g:f32, b:f32, a:f32)->Self{Self{ r, g, b, a }}}