[][src]Function gdl::elements::draw_opaque_rect

pub fn draw_opaque_rect(
    img: &mut DynamicImage,
    background_color: &Rgb,
    opacity: u8,
    width: u32,
    height: u32,
    x_pos: i32,
    y_pos: i32
)

Draw an opaque rectangle, where the opacity is set to a certain u8 value.