import traer.physics.*; import com.nootropic.processing.layers.*; int w = 500; int h = w; AppletLayers layers; int SPLAT_SIZE = 6; HashMap colors = new HashMap(); void setup() { size(500, 500, P3D); colorMode(HSB); frameRate(24); layers = new AppletLayers(this); layers.addLayer(new ProjectileLayer(this)); background(0); cursor(CROSS); } void paint(java.awt.Graphics g) { if (layers != null) { layers.paint(this); } else { super.paint(g); } } void draw() { // this method must be present even though the AppletLayers object is doing all the drawing! } void splat(float x, float y, float z, int c) { fill(c); stroke(c); pushMatrix(); translate(x, y, z); float r = SPLAT_SIZE+random(-2, 2); ellipse(0, 0, r, r); int n = (int)random(5, 10); for(int i=0;i