We are about to switch to a new forum software. Until then we have removed the registration on this forum.
How to check the color of pixel and the color of pixels around this first pixel? For example i want to check mouseX and mouseY pixel color, and all the pixels colors which are located on the certain radius from mouseX and mouseY.
Not exactly you're asking for, but this old forum thread got an example of circular image cropping: ~:>
I will read this, thanks
If your image is loaded PImage object, after you display the image you can call loadPixels() and then you can get access to those pixels directly.
You could also use the get() function. Check the argument options for this function:
You could use color c = get(x,y) to obtain the color at pixel (x,y) or you could do:
to get a section of the image where you could then do the color checking. There are some examples in the video library under capture. Are you familiar with accessing the provided examples of installed libraries?