Skip to content

Instantly share code, notes, and snippets.

View eduairet's full-sized avatar

Eduardo Aire eduairet

View GitHub Profile
@justvanrossum
justvanrossum / Jellyfish.py
Last active March 10, 2020 17:11
DrawBot: Generate a jellyfish-like pulsating blobby animation.
# Generate a jellyfish-like pulsating blobby animation.
from random import seed
def varyPoint(pt, radius, phase):
x, y = pt
dx = radius * cos(phase)
dy = radius * sin(phase)
return x + dx, y + dy