






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Would like to “plug in” code
def animate(self,dt): """Animate the ellipse back & forth""" if self._steps == 0:
… elif self._steps > ANIMATION_STEPS/2:
x = self._ellipse.pos[0] y = self._ellipse.pos[1] self._ellipse.pos = (x+self._vx,y+self._vy) self._steps = self._steps - 1 else: # Move back x = self._ellipse.pos[0] y = self._ellipse.pos[1] self._ellipse.pos = (x-self._vx,y-self._vy) self._steps = self._steps - 1
§ on_touch_down:" User presses mouse (or a finger); does not release § on_touch_up:" Releases mouse (or finger) § on_touch_move:" Moves mouse (or finger)
Previous Touch Current Touch
Previous Touch Current Touch