public void draw(View view, Graphics renderer) {
long elapsedTime = System.nanoTime() - currTime;
currTime += elapsedTime;
renderer.clearTransformation();
renderer.setClearColor(new Color4f(0,1,0,1));
renderer.clear();
// Draw darkness
renderer.fillTriangle(100, 100, 200, 100, 150, 200);
renderer.copyToImage(dark, 100, 100, 100, 100);
renderer.setColor(new Color4f(1,0,0,1));
// renderer.drawLine(201, 100, 201, 200);
renderer.fillTriangle(201, 100, 501, 100, 201, 400);
renderer.setColor(new Color4f(1,1,1,1));
renderer.translate(-202, -100);
renderer.drawImage(dark, 512, 512);
// draw frames per second