<s> """<STR_LIT>""" <EOL> balls = [ ] <EOL> ballWidth = <NUM_LIT> <EOL> class Ball : <EOL> def __init__ ( self , tempX , tempY , tempW ) : <EOL> self . x = tempX <EOL> self . y = tempY <EOL> self . w = tempW <EOL> self . speed = <NUM_LIT:0> <EOL> self . gravity = <NUM_LIT:0.1> <EOL> self . life = <NUM_LIT:255> <EOL> def move ( self ) : <EOL> self . speed = self . speed + self . gravity <EOL> self . y = self . y + self . speed <EOL> if self . y > height : <EOL> self . speed = self . speed * - <NUM_LIT> <EOL> self . y = height <EOL> self . life -= <NUM_LIT:1> <EOL> def finished ( self ) : <EOL> return self . life < <NUM_LIT:0> <EOL> def display ( self ) : <EOL> fill ( <NUM_LIT:0> , self . life ) <EOL> ellipse ( self . x , self . y , self . w , self . w ) <EOL> def setup ( ) : <EOL> size ( <NUM_LIT:200> , <NUM_LIT:200> ) <EOL> smooth ( ) <EOL> noStroke ( ) <EOL> balls . append ( Ball ( width / <NUM_LIT:2> , <NUM_LIT:0> , ballWidth ) ) <EOL> def draw ( ) : <EOL> background ( <NUM_LIT:255> ) <EOL> for ball in reversed ( balls ) : <EOL> ball . move ( ) <EOL> ball . display ( ) <EOL> if ball . finished ( ) : <EOL> balls . remove ( ball ) <EOL> def mousePressed ( ) : <EOL> balls . append ( Ball ( mouseX , mouseY , ballWidth ) ) </s>
