bounce()
Returns a value that varies back and forth between 2 given limits with time. The movement is linear.
Example
def draw():
...
y = bounce(0,height,10)
circle(200,y,20)def draw():
...
y = bounce(0,height,10)
x = x + 1
circle(x,y,20)Syntax
bounce(edge1, edge2, speed)Input
Description
Description
Last updated

