Screen Recording 2022-09-18 at 11.10.08 PM.mov
Screen Recording 2022-09-22 at 1.00.40 AM.mov
Blink interaction
Eyes color interaction
Declare > 2) Initialize > 3) Use
To use ‘let’, need to name the variable.
It’s a named entity that’s storing a reference(=number). > assignment operation.
Use that variable somewhere where you are ordinarily just writing the literal value itself. circleX = circleX + 4 >> The right-hand side is evaluated, then ‘draw’ loops and loops and … / the number after + means speed to move.
My Think
Honestly, it’s difficult to understand the principle(?) of code in p5js last week. I think I covered my eyes because coding would be difficult for me who has only been graphic designing so I wasn’t curious about anything cause I didn’t know what I didn’t know. But this week I organized the order (Declare-Initialize-Use) and practiced with the editor again and again and now I understood this principle(while practicing, I said “Aha!”). I still have to spend a lot of time defining things using formulas(like X=3*width/4), but I find this process quite interesting.
Curious
· I was wondering what’s different between ‘mousePressed & mouseisPressed’. as I understand, the former is used for ‘define’, and the latter is used for ‘call’. But I can use the ‘mousePressed’ like a ‘call’ function because it worked without ‘mouseisPressed’.
· And the thing that I still haven’t solved in the last week is the principle of the ‘curve’. I acknowledged the meaning of the 4 positions in the curve, but it’s very confusing to adjust the value and draw a wanted curve precisely.