/*Jeremy Turner (JOT) Assignment A2-10 #200024742 Create an event that begins when the mouse is pressed... and ends when the mouse is released. */ void setup () { size (333, 333); background (235, 252, 0); //this is the original colour that I revert back to later //to clear the screen and "end" the event } void draw() { //this just allows the mousePressed text to appear on the screen... //...for as long as the mouse button is held down. } void mousePressed() { redraw(); PFont font; font = loadFont("Eurostar-24.vlw"); //I uploaded this font using the "create font" feature... textFont(font); String s = "THIS IS NOT AN EVENT... "; //this is the text that appears on the screen. fill(24, 198, 212); //Sets the colour of the text. text(s, 70, 200, 70, 70); //Sets the position of the text } void mouseReleased() { background(235, 252, 0); //this was my way of erasing the event and thus, //"ending" it. }