This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from math import pi, sin, cos, radians; | |
# Method: Draw a circle of points, shift all points to the left when drawing the upper half, shift all points to the right | |
# when drawing the lower half. At the end draw a straigh line going upwards on each point (or downwards… not sure | |
# which direction SVG is doing stuff. ;) ) | |
# | |
# Note: Bunch of double calculations there, so this is not very optimized… :D |