This file contains hidden or 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
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 |