We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I am attempting to program Processing 2 to look at an image, sample the image's colors and use those values/data to create new drawings.
Is there a way to do this? I've looked under PImage headings but most of the entries revolve around recreating the image in processing.
Any idea of what I should do/ Where I should look?
Answers
you can use image.get(x,y) to get a color from a pixel with its x and y coordinates
https://processing.org/reference/get_.html
https://processing.org/tutorials/pixels/
There's a helpful example at http://code-playground.tumblr.com/post/128917104735/extracting-colorsets-from-pictures-in-processing