Play around with the sliders. You may use my code in your own project if you credit me. Sides values above 200 might get a little laggy. What things do: Sides changes the amount of points. Size changes how far away the points are from the center. X and Y offsets move it around. Angle offset spins it.
(Fixed the center point bug)