Skip to content

Instantly share code, notes, and snippets.

View NiclasEriksen's full-sized avatar

Niclas Eriksen NiclasEriksen

View GitHub Profile
@NiclasEriksen
NiclasEriksen / main.py
Created February 16, 2020 15:16
Recursive line geometry
from vector import Vector
from math import pi
from PIL import Image, ImageDraw, ImageColor
import random
WIDTH = 1448 # Final image will be twice this, resolution low
HEIGHT = 1024 # for performance reasons (this also leaves some artifacts)
SS = 8 # Supersampling, for anti-aliasing
THICKNESS = 1 # Line thickness
RECURSION_LIMIT = 100 # Just for safety