Spinning rod animation/Text

Revision as of 12:51, 11 June 2018 by Childishbeat (talk | contribs) (This webpage has been created.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

An animation with the following frames in the following order must animate with a delay of 0.25 seconds between each frame, with the previous frame being cleared before the next frame appears:

  • |
  • /
  • -
  • \
Task
Spinning rod animation/Text
You are encouraged to solve this task according to the task description, using any language you may know.
Task

A version that loops and/or a version that doesn't loop can be made.

Microsoft Small Basic

<lang microsoftsmallbasic>a[1]="|" a[2]="/" a[3]="-" a[4]="\" b=0 While b=0

 For c=1 To 4
   TextWindow.Clear()
   TextWindow.WriteLine(a[c])
   Program.Delay(250)
 EndFor

EndWhile</lang>