Function rin_graphics::rectangle_color[][src]

pub fn rectangle_color<C: ToRgba>(
    pos: &Pnt2,
    w: f32,
    h: f32,
    color: &C
) -> Mesh<Vertex2DColor>

Returns a rectangle as a filled mesh with position and color per vertex