Processing Forum
copy(sx, sy, sw, sh, dx, dy, dw, dh)
but i can't solve the use of this copy,
i use a very simple code using PGraphics without succes
PGraphics pg; PGraphics ph; PImage img; void setup() { size(100, 100); pg = createGraphics(40, 40); ph=createGraphics(40, 40); } void draw() { pg.beginDraw(); pg.background(100); pg.stroke(255); pg.line(20, 20, mouseX, mouseY); pg.endDraw(); image(pg, 9, 30); ph.beginDraw(); ph.copy(9, 30, 40, 40, 51, 30, 40, 40); ph.endDraw(); image(ph, 51, 30); }
the second pgraphics doesnt appeears so i conclude the copy() method is inefficient.
Could you give me some hints to understand how use copy() in a efficient way to store the screen in a PGraphics?
Thx in advance
Sacha
how can I delete outside from the < and > char?
I know there is a lot of questions, but i work so hard and
now i really need help.Thx!