So I'm new to processing. I've only started programing and stuff like a month ago. I'm kinnda stuck. I'm trying to make this sort of drawing thing. You use the arrow keys to change the color but it isn't working out how I thought it would. Can anyone tell me what I'm doing wrong?
void draw () {
text("Up arrow for red, the down arrow for blue, the right for yellow and left for green.", 230, 300);
stroke(strokeVal);
if (mousePressed) {
line(mouseX,mouseY,pmouseX,pmouseY);
}
}