i have a component button attached to pin 7 and i have my POTs creating lines with a stroke colour of 255,0,0 in HSB colourMode. The problem i am having is within my sketch i have two stroke() references within my sketch if i change both of them to 255,255,255 this changes my line to red.
what im wanting to do is but setting up my button i want to be able to press my button to change my colour from black (255,0,0) to red (255,255,255)
i have tried something like this:
if(arduino.digitalRead(buttonPin3)==Arduino.LOW)
stroke(255,0,0);
} else {
stroke(255,255,255);
}
but nothing works i think it has something to do with me having to have two stroke() references in my sketch. can anyone help out please.
im making a digital etch a sketch and wanting to save all the sketches i create on it as PNG files. on an old sketch i did i could press S to save the image in my folder. the other problem with that was i could only save one image and it over ritten my old image. im wanting to press a button placed on my etch a sketch to save an image but then forget i saved that image and able to save another image.
if any once can knock up a dummy pice of code for me or has anything similar that i could use i would be very appreciative of it.
I have this code i am using that allows me to draw lines with two rotary resistors. the only problem is its drawing is dots instead of lines. i am making a very simple (what im finding difficult) etch a sketch that will soon turn into a complex project using a verity of other components but for now i am trying to tweak this code to make it draw better. here is my code i am currently using any help is much appreciated.
BTW i am very new to Processing and layman's terms would be best to help.