Function elmesque::form::ngon [−] [src]

pub fn ngon(n: usize, r: f64) -> Shape

A regular polygon with N sides. The first argument specifies the number of sides and the second is the radius. So to create a pentagon with radius 30, you would say ngon(5, 30.0)