int x; //int s; //s = rect(75, 219, 20, 20); void setup() { size(600, 771); //puts on the doodle background BImage b; b = loadImage("doodle.jpg"); image(b, 0, 0); //put in some shapes to indicate pen color- will be buttons //pencil square fill(70); //int s; rect(75, 219, 20, 20); //bluecircle fill(65,56,231); ellipse(55, 257, 20, 20); //redtriangle fill(253,77,57); triangle(96, 277, 108, 258, 120, 277); //put in some text BFont Rotis; Rotis = loadFont("RotisSanSerBol.vlw"); textFont(Rotis, 25); fill(50); text("pencil", 15, 235); text("pen", 15, 275); } //boolean s; //s = false //s = rect(75, 219, 20, 20); //should this be out of the loop, since it only needs to happen once? //why do I get an error message here? //I like talking to myself //this's the pencil void loop() { stroke(70); if(mousePressed && pmouseX != 0 && pmouseY != 0) { line(mouseX, mouseY, pmouseX, pmouseY); } { } //} //{ //gives the command that if you click on the square the pen can be used //if (s = mousePressed) { // s = true; // fill(0,0,255); //I'm trying to get it so that the square is an integer //(or a variable, whichever works) //so if you click on it, it beocmes 'true' and the color changes. // { // if (mouseX >= 75 && mouseX <= 95 && //mouseY >= 219 && mouseY <= 239) { // stroke(255,0,0); // } else { // stroke(0,255,0); // rect(75, 219, 20, 20); //} //void mouseReleased (){ //x=fill(255,0,0); //} //this will be 'pen' //ellipse(mouseX, mouseY, 5, 5); //if (mousePressed == true) { // fill(0); // } else { // noFill(); // noStroke(); // } //ellipse(10, 10, 10, 10); //void display() // { // } }