Demonstration of processing.js bug involving mask with PGraphics

Source code: bug.pde

First panel is PImage colored solid red.
Second panel is PGraphics with white circle on black background
Third panel is the red PImage masked with the circle PGraphics (should be red circle)
Fourth panel is the red PImage masked with a PImage copy of the PGraphics mask (should be red circle)

For the sake of reference, this next image is a static one created by running this example in Processing Java mode.

Currently testing with processing.js version 1.4.8 (17 April 2014)

Summary of testing with other versions of processing.js (in Safari, Firefox, Chrome):
Processing-1.4.7.js third panel all gray
Processing-1.4.7.min.js third panel all gray
Processing-1.4.1.js third panel all gray
Processing-1.4.1.min.js third panel all gray
Processing-1.4.0.js third panel all gray
Processing-1.4.0.min.js third panel all gray
Processing-1.3.6.js third panel all red
Processing-1.3.6.min.js third panel all red
Processing-1.3.0.js third panel all red
Processing-1.3.0.min.js third panel all red

Public postings of this issue:


Michael Goldwasser
Last modified: Sunday, 15 March 2015