Draw a many pointed star

From Progzoo
Jump to: navigation, search

You can draw a complex star as a polygon. A 14 point star will have 14 points on the circumference of a large circle alternating with 14 points on the circumference of a smaller circle. The parameters are:

  • s1: radius of the large circle
  • s2: radius of the small circle
  • n: number of points

Flagmalaysia.png


A point on the circumference of a circle, radius R at an angle of a from the x-axis has coordinates [1]:

(R*cos(a), R*sin(a))

See also:

[Font] [Default] [Show] [Resize] [History] [Profile]