Lesson goal: Animating a text banner

Previous: Exploding text | Home | Next: Growth pattern

The printxy statement allowed you to display text on the screen at a particular x,y coordinate. This is a useful function because it treats text like graphics, so you can draw and animate with it.

In this lesson, let's draw some text that moves across the screen, from right to left, sort of like an animated "text banner."

Now you try. Fix the for-loop to count from x=200 to x=-200 in steps of -10 or so. Next, fill in the proper $(x,y)$ coordinates of where the text should be drawn in the printxy statement.

Type your code here:


See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.