1 class Sandbox extends SCPattern
4 LetsTry(GLucose glucose) {
12 public void run(int deltaMs) {
13 Cube cube = model.cubes.get((int) c);
14 println("face length "+cube.faces.size());
15 if(cube.faces.size()!=4)
17 for(Face f : cube.faces)
19 double col = Math.random()*255;
20 for(Point p: f.points)
22 colors[p.index] = color(Math.round(col),255,255);
30 c = (c+1) % cuberange;