[−][src]Function rustvis::drawing::draw_preset_rect_gradient
pub fn draw_preset_rect_gradient(
img: &mut DynamicImage,
width: u32,
height: u32,
x_pos: u32,
y_pos: u32,
preset_name: &str
)
Preset: Draw a gradient rectangle filled with a gradient.
Arguments
img- A mutable ref to a DynamicImage.width- u32 - Desired width of gradient rectangle.height- u32 - Desired height of gradient rectangle.x_pos- X-coordinate of top corner of rectangle onimgy_pos- y-coordinate of top corner of rectangle onimgpreset_name- Name of the preset. Examples include "lemongrass", "pink_blue", "pastel_pink", "pastel_mauve"