View
Golden Angle Donut, 2016

JavaScript on CanvasRenderingContext2D

Draw a straight line, then starting from the end of that line, rotate by the golden angle and draw the same line in that direction. Continue adding new lines until you have a tasty donut.

Parameters