This file contains 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
# 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 |