Background in ProcessingJS is automatically redrawn?
in
Processing with Other Languages
•
1 year ago
When using ProcessingJS is it possible to NOT redraw the background on every frame?
Check the following sketch; when running in Processing itself the background is not redrawn, but when running in ProcessingJS it is. Is it a bug?
- void setup() {
- size(300, 300, P3D);
- smooth();
- noFill();
- stroke(0);
- }
- void draw() {
- //no background() called
- translate(width/2, height/2);
- box(mouseX, mouseY, 0);
- }
Cheers,
mrzl
1