[−][src]Function gdl::elements::draw_equilateral_triangle
pub fn draw_equilateral_triangle(
img: &mut DynamicImage,
side_len: u32,
x_pos: i32,
y_pos: i32,
background_color: &Rgb
)
Draw an equilateral triangle.
Not represented by a Triangle struct, because all sides are equal, and only one value should be entered.
img
- A mutable ref to a DynamicImage.side_len
- Side of the equilateral triangle, which will constitute all 3 sides.x_pos
- X-coordinate of top point of triangle onimg
y_pos
- y-coordinate of top point of triangle onimg