/** * Cube Wall by Felix Turner * www.airtightinteractive.com * Simple animation of 3D boxes with cyclical movement * * Requires P5Sunflow library: * http://hipstersinc.com/p5sunflow */ import hipstersinc.sunflow.*; import hipstersinc.sunflow.shader.*; import hipstersinc.*; import processing.opengl.*; String movName = "img/CubeWall01"; //where to render images boolean useSunflow = true; //set to false for fast OPENGL render int numCubes = 20; float numFrames = 90;//length of animation float pileSize = 250; //dimension of cube pile Cube[] cubes = new Cube[numCubes]; // Set up the scene void setup() { if (useSunflow){ size(1280, 720, "hipstersinc.P5Sunflow"); }else{ size(1280, 720, OPENGL); } noStroke(); //create cubes for(int i=0; i