Ok gotcha so it can only accept regular canvas commands and nothing else. At least from what I understand.
if I change the code to the following
public void draw(){
background(50);
fill(0);
ellipse(0,0,width,height);
//display();
fill(255);
text("hello",50,50);
//System.out.println(count);
};
however add anything else and it just goes wonky.