image() and then loadPixels() don't refresh the pixels at all
in
Programming Questions
•
7 months ago
So I'm trying to wrote an simple program, sort of an "imagemasher" I'd say - it simply takes some random sized rectangle of pixels and puts it to other part of an image. I managed to run it successfully, however, I used loadpixels(), but now I'd like to use PImage::loadPixels.
I have my code on Sketchpad. It doesn't work at all in a browser. From the desktop application, it shows a bunch of messy pixels. The idea is that after each draw it starts again from the original image. But after raising the randThreshold variable to 99 I clearly see that it doesn't refresh the image.
How can I fix that?
I have my code on Sketchpad. It doesn't work at all in a browser. From the desktop application, it shows a bunch of messy pixels. The idea is that after each draw it starts again from the original image. But after raising the randThreshold variable to 99 I clearly see that it doesn't refresh the image.
How can I fix that?
1