beginShape not working in PGraphics?
I'm quite new to the PGraphics thingy, so far everything works fine, but when I want to do more complex tasks within the class, such as (sample code) it simply doesnt display anything
PGraphics canvas;
canvas = new createGraphics(width,height,P2D); //in setup()
canvas.beginDraw(); //in draw()
canvas.beginShape();
//do something with canvas.curveVertex() ...
canvas.endShape();
canvas.endDraw();
image(canvas,0,0,width,height);
As long as I keep using "simple" commands like background(0), everything works fine and is displayed, but shapes simply do not display. Anybody got an idea why this behaves like that?
===========
Capable of English, German, French, Russian and Latin, but simple languages like AS3 or Processing are absolutely killing me!