pixel array change after loadPixels();

Hi!

Been trying to understand this for some time now. I'm doing some effects on a webCam feed with p5 but the pixel array keeps resetting. Added a picture so you can understand.

Have I missed something about the pixel array? You can see where I log in the upper right and how the array changes. The array changes back to the original image.

Tagged:

Answers

  • Answer ✓

    It's like asking questions makes you think one step further. Found the reason!

    I loaded the array more than once so it just reset itself. If anyone else gets the same issue.

Sign In or Register to comment.