prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] PGraphics and render issues #148

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by davideoliveri Sunday May 19, 2013 at 13:24 GMT Originally opened as https://github.com/processing/processing-web/issues/148


On Processing 2.0b9 isn't possible to use a PGraphics with JAVA2D and the P2D render: PGraphics is not updated, run this sketch, then change the render to P2D

PGraphics canvas;

void setup() { canvas = createGraphics(400, 400, JAVA2D); size(400, 400); canvas.beginDraw(); canvas.background(0); canvas.fill(255); canvas.ellipse(canvas.width/2, canvas.height/2, 20, 20); canvas.textSize(20); canvas.text("the first ellipse is drawn", 20, 30); canvas.noStroke(); canvas.endDraw(); }

void draw() { image(canvas, 0, 0, width, height);
canvas.beginDraw(); canvas.ellipse(random(canvas.width), random(canvas.height), 20, 20); canvas.text("a second one may be drawn \nand no more ellipses", 20, 55); canvas.endDraw(); text("while frames are running "+frameCount, 20, height-40); }

also, a PGraphics with P2D and size() with P2D doesn't work.

The combination of a JAVA2D PGraphics and P2D is required to use Syphon.

prisonerjohn commented 10 years ago

Comment by aengelke Sunday May 19, 2013 at 14:04 GMT


  1. I think this is an issue for processing/processing
  2. P2D PGraphics with the P2D renderer works for me.
prisonerjohn commented 10 years ago

Comment by REAS Sunday May 19, 2013 at 16:27 GMT


@davideoliveri Please re-post this issue at processing/processing. The processing/processing-web repo is for the website and documentation.