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
# An interpretation of Marcel Duchamp's Rotoreliefs, as seen in his 1926 movie Anemic Cinema: | |
# https://www.youtube.com/watch?v=dXINTf8kXCc | |
def circle(pt, radius): | |
diameter = 2 * radius | |
x, y = pt | |
oval(x - radius, y - radius, diameter, diameter) | |
canvasSize = 500 | |
nFrames = 64 # 64 |
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
# This script is part of a tutorial screencast: https://vimeo.com/149247423 | |
CANVAS = 500 | |
SQUARESIZE = 158 | |
NSQUARES = 50 | |
SQUAREDIST = 6 | |
width = NSQUARES * SQUAREDIST | |
NFRAMES = 50 |
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
# FREQUENCY = 1 | |
# http://dailydrawbot.tumblr.com/post/135252661206/the-blob | |
# FREQUENCY = 2 | |
# http://dailydrawbot.tumblr.com/post/135266061309/the-blob-2 | |
def centerOval(pt, radiusX, radiusY): | |
x, y = pt | |
oval(x - radiusX, y - radiusY, 2 * radiusX, 2 * radiusY) |
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
# Physics stolen from: | |
# http://giphy.com/gifs/wave-circle-point-13ePqdDflwat9e | |
def blobPos(pt, r, a): | |
x, y = pt | |
x += cos(a) * r | |
y += sin(a) * r | |
return (x, y) | |
def drawGrid(cells): |
NewerOlder