[−][src]Function rustvis::drawing::create_gradient
pub fn create_gradient(width: u32, height: u32) -> DynamicImage
Create a gradient element in the shape of a Rect.
Returns a DynamicImage.
Arguments
width
- u32 - Desired width of gradient.height
- u32 - Desired height of gradient.