We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everybody, I’m Sara and I’m pretty new in graphic with Processing. Recently I’ve been asked to make a sketch for a communication campaign. May someone of you gentleman could help me out? I’m almost running out of time, my deadline is approaching and all my drafts still not good enough, so I finally decided to ask some help to the pros.
I’m projecting a sketch in which, the mouse pointer can change the colors of an image by moving over.
Answers
These should give you some starting points:
https://forum.Processing.org/two/discussion/15473/readme-how-to-format-code-and-text
https://forum.Processing.org/two/discussions/tagged?Tag=#rgb
https://forum.Processing.org/two/discussions/tagged/cropping
Thank you so much for your kind help.
How to estimate colors?
Get the RGB values:
Find the maximum value:
You might also be interested on other ways to convert RGB color to grayscale:
Hi Barbara, thank you very much for your tips. Btw, I'm not finding the code for adopte one of that techniques...
On line 32, you're setting the color using the brightness with:
Instead, read the RGB values into variables and set the color to the maximum.
Perfect! Thank you very much :) :) :)