Skip to content

Instantly share code, notes, and snippets.

@darrenmothersele
Created October 27, 2013 18:06
Show Gist options
  • Save darrenmothersele/7185821 to your computer and use it in GitHub Desktop.
Save darrenmothersele/7185821 to your computer and use it in GitHub Desktop.
Box of boxes for Live code lab http://livecodelab.net/play/index.html
scale 0.4
rotate time / 800, time / 800, time / 1000
spread = ((frame / 10) % 10) - 5
move -2*spread,-2*spread,-2*spread
3 times ->
move 0,0,spread
pushMatrix
3 times ->
move 0,spread,0
pushMatrix
3 times ->
move spread,0,0
box 1.5
popMatrix
popMatrix
@davidedc
Copy link

move -2_spread,-2_spread,-2*spread

can be shortened to:

move -2*spread

if one parameter is passed, it is implied to apply to x y z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment