Last active
August 29, 2015 14:02
-
-
Save tildebyte/d5d04ded0c7be5d4e4a4 to your computer and use it in GitHub Desktop.
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
soBase = (HOscillator(). | |
speed(1). | |
range(-5, 5). | |
freq(4). | |
property(H.ROTATION)) | |
rects = [HRect(rectDiameter) | |
.fill(141, 73, 63, choice([64, 196])) | |
.noStroke() | |
.loc(x, y) | |
.anchorAt(H.CENTER) | |
.rotation(random(-5, 5)) | |
for x in range(50, 550, rectDiameter) | |
for y in range(50, 550, rectDiameter)] | |
for rect in rects: | |
H.add(rect) | |
soBase.target(rect) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment