I have 7 buttons for an RGB colour corrector, an individual + and - for each R, G, and B and then a reset button.
However when I hover over the Blue - button it also highlights the RESET button and it acts as if it is being pressed, in terms of increasing the strokeWeight but it does not reset everything. That only happens when I click the reset button. However I obviously would like to get rid of the fact that when I interact with the Blue - button, the RESET button acts as if it is being interacted with.
Any help would be appreciated, thank you!
PImage Mushrooms;
PImage Mushrooms2;
float redCC = 1;
float greenCC = 1;
float blueCC = 1;
void setup() {
Mushrooms = loadImage ("Mushrooms.jpg");
int dimension = (Mushrooms.width*Mushrooms.height);
My code includes 6 buttons which work fine, however when I try to attach something to the mouse clicks it never works. I am trying to connect a + and - button to R, G and B to increase and decrease each one separately however when I copy my code into to the mousePressed section, it does not recognise [i] in terms of pixels. Can someone please help. I am new to processing and suck at it!
PImage Mushrooms;
PImage Mushrooms2;
int valueRed = 155;
void setup() {
Mushrooms = loadImage ("Mushrooms.jpg");
int dimension = (Mushrooms.width*Mushrooms.height);
Hi, not very good at Processing as you'll tell from my code.
I'm trying to create a colour corrector in which you change the RGB values by clicking a plus or minus button.
I however can't figure out how to define or connect my mouse clicks to the right buttons. Let alone make those buttons change it's respective RGB value of the image.
PImage Mushrooms;
PImage Mushrooms2;
void setup() {
Mushrooms = loadImage ("Mushrooms.jpg");
int dimension = (Mushrooms.width*Mushrooms.height);