[−][src]Function gdl::elements::draw_inline_border_rect
pub fn draw_inline_border_rect(
img: &mut DynamicImage,
background_color: &Rgb,
background_color2: &Rgb,
width: u32,
height: u32,
x_pos: i32,
y_pos: i32
)
Draw multiple borders stacked on each other, for added depth.
Arguments
img
- A mutable ref to a DynamicImage.background_color1
: Rgb color of first rectangle.background_color2
: Rgb color of second rectangle.width
- u32 - Desired width of gradient rectangle.height
- u32 - Desired height of gradient rectangle.x_pos
- X-coordinate of top corner of rectangle onimg
y_pos
- y-coordinate of top corner of rectangle onimg