Function rin_graphics::rectangle_gradient[][src]

pub fn rectangle_gradient<C: ToRgba + ToRgb>(
    pos: &Pnt2,
    w: f32,
    h: f32,
    gradient: &Gradient<C>
) -> Mesh<Vertex2DColor>

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