Created
October 27, 2013 18:06
-
-
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
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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