*
* Custom UI components using the framework.
*/
-
+import java.util.Arrays;
class UICubesLayer extends UICameraComponent {
void onDraw(UI ui) {
color[] simulationColors = lx.getColors();
simulationNanos = System.nanoTime() - simulationStart;
camera();
- javax.media.opengl.GL gl = ((PGraphicsOpenGL)g).beginGL();
- gl.glClear(javax.media.opengl.GL.GL_DEPTH_BUFFER_BIT);
- ((PGraphicsOpenGL)g).endGL();
+ PGraphicsOpenGL gl = (PGraphicsOpenGL) g;
strokeWeight(1);
}