Function rin::graphics::rectangle_gradient[][src]

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

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