Also, interestingly - Alma used a pencil and a paper to plan her flower...
lesson 2 - 9/2/2022
Content
INTERACTIVITY !
mouseX, mouseY - the computer's way to tell us where the mouse is
Events - the computer "shouts" to us when certain events take place, and we can do stuff when they are called:
mousePressed()
mouseDragged()
We mentioned the REFERENCE section, where all the words in Processing language can be found.
Find it via the HELP menu, or often by right-clicking a word like "mouseX" in the code
We started to discuss - functions with arguments - how do I pass arguments to my "flower"... We'll get back to that next week.
void draw(){
flower(mouseX);
}
void flower (int a) { // the agreement says: when you call me, you MUST send me an int... // I will call it "a" internally... for instance: println(a); circle (200,200,a); }
We also mentioned storke(120,200,200); to control the color of the outside of the shapes, or "noStroke()" if we want not to have any stroke..