Skip to content

Instantly share code, notes, and snippets.

@tildebyte
Last active August 29, 2015 14:02
Show Gist options
  • Save tildebyte/d5d04ded0c7be5d4e4a4 to your computer and use it in GitHub Desktop.
Save tildebyte/d5d04ded0c7be5d4e4a4 to your computer and use it in GitHub Desktop.
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