Skip to content

Instantly share code, notes, and snippets.

View the-real-tokai's full-sized avatar
🐢
Turtle Power!

Christian Rosentreter the-real-tokai

🐢
Turtle Power!
View GitHub Profile
@the-real-tokai
the-real-tokai / 20200531.py
Created May 31, 2020 21:16
Draw a Series of Straight Upward Lines on a Circle that Is Shifted Horizontally in the Middle
#!/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