Hi,
I am developing my code in Eclipse and tried to run the laser burn example... but I am getting errors in files that extend 'Layer'.. For example:
=============================== Code begins ==========================================
package testPackage;
import java.util.Iterator;
import java.util.SortedSet;
import java.util.TreeSet;
import traer.physics.*;
import processing.core.*;
import com.nootropic.processing.layers.*;
public class HeatLayer extends Layer {
SortedSet hotSpots = new TreeSet();
int hot = color(255, 40, 40);
int cold = color(0);
int size;
int maxAge = 40;
boolean newClick = false;
public HeatLayer(PApplet parent) {
super(parent);
}
public void mousePressed() {
newClick = true;
}
public void draw() {
if (mousePressed) {
hotSpots.add(new HotSpot(mouseX, mouseY, newClick));
// Eclipse gives an error on the symbols mouseX, mouseY and mousePressed.. says it can't resolve them.. same problem for symbols like
// 'key' and color()...
newClick = false;
}
//More code...
}
}
=============================== Code ends ==========================================
Anything I am missing here??
--Sameer


