Function macroquad::shapes::draw_poly

source ·
pub fn draw_poly(
    x: f32,
    y: f32,
    sides: u8,
    radius: f32,
    rotation: f32,
    color: Color
)
Expand description

Draws a solid regular polygon centered at [x, y] with a given number of sides, radius, clockwise rotation (in degrees) and color.