
Due to differences between Processing Java and processing.js, you can only run this project in Processing and not view it on the Web correctly. First, the extraction of a subimage does not work in the same way and second the backgrounds are also rendered differently.
Here is what it looks like on Processing Java:
Here is what it looks like with processing.js