X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=blobdiff_plain;f=UIImplementation.pde;fp=_UIImplementation.pde;h=7750ab930c365a3322d635b6f82728483f0bca7c;hp=ba0f110bc826a00aec85ce91e1b7ad52e9520c37;hb=7d60f6f6ea82fd5c9794524ce11d40e7d6c00bf7;hpb=45717f713884d7f7f1f7e97003c47ab43edb8ab1 diff --git a/_UIImplementation.pde b/UIImplementation.pde similarity index 99% rename from _UIImplementation.pde rename to UIImplementation.pde index ba0f110..7750ab9 100644 --- a/_UIImplementation.pde +++ b/UIImplementation.pde @@ -10,7 +10,7 @@ * * Custom UI components using the framework. */ - +import java.util.Arrays; class UICubesLayer extends UICameraComponent { void onDraw(UI ui) { color[] simulationColors = lx.getColors(); @@ -28,9 +28,7 @@ class UICubesLayer extends UICameraComponent { 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); }