problem with pixels and video
in
Programming Questions
•
11 months ago
Hi,
i have putted my video in a PImage img variable
- img = myMovie;
- image(img, 0, 0);
and this works perfectly.
but when i try to do this
- // Look up the RGB color in the source image
- color pink = color(255, 102, 204);
- loadPixels();
- for (int i = 0; i < (width*height/2)-width/2; i++) {
- img.pixels[i] = pink;
- }
- updatePixels();
it says me error "ArrayIndexOutOfBoundsException: 0"
How to solve?
thanks
1