fn ngon(sides: u32, w: f32, h: f32, star: bool) -> Vec<[f32; 2]>
Regular polygon (or star: 2x the vertices, alternating radii) inscribed in the w x h ellipse, first vertex pointing up.