Learn on the class

This week we learnt about variable. It’s quiet thought-provoking to consider the relationship between different elements. The frame looks vivid. Also, doing math question is fun.

Video lesson-conditional logic

Here is the note.

I’m still confused about some case—for example, how can I let a ball bounce in an exact interregional?

0a6d14b31efc5b847978c5c1606dd73e.jpg

Portrait updating

I change the mouth size with mouseX & mouseY.

  ellipse(210,270,mouseX/3,mouseY/3)

Also, I put two hands on, but I don’t know how to make it stop at the half-of my frame.

//hand
  a=a+speed;
  b=b+speed;
  if(a>height){
    speed=-3;
  }
  if(b>height){
    speed=-3;
  }
  ellipse(100,a,30,30)
  ellipse(300,b,30,30)

see it!