[−][src]Function rustvis::drawing::create_gradient_preset
pub fn create_gradient_preset(
width: u32,
height: u32,
name: &str
) -> DynamicImage
Apply a preset gradient by passing in a name.
Arguments
width
- u32 - Desired width of rectangle.height
- u32 - Desired height of rectangle.name
- The preset to be used. Presets available include: pinkblue, lemongrass