Skip to content

Instantly share code, notes, and snippets.

View Alfo5123's full-sized avatar
🐨

Alfredo De La Fuente Alfo5123

🐨
View GitHub Profile
@Alfo5123
Alfo5123 / worms.py
Last active January 22, 2019 02:07
import cairocffi as cairo
from math import hypot, pi, sqrt
from random import random, seed
seed(511)
W, H, N, I = 2000, 2000, 15, 2000
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, W, H)
cr = cairo.Context(surface)
cr.set_source_rgb(0,0,0)