Spinning rod animation/Text: Difference between revisions

Content added Content deleted
m (→‎{{header|NS-HUBASIC}}: NS-HUBASIC example added)
m (The task description now says alternate characters can replace any of the frames and when that's allowed. Also, a note saying the 0.25 second delay assumes the program is running at 60 frames per second has been added to the NS-HUBASIC solution.)
Line 2: Line 2:


;Task:
;Task:
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: <big>
An animation with the following frames in the following order (if certain characters aren't available or can't be used correctly in the programming language, alternate characters can replace any of these frames) must animate with a delay of 0.25 seconds between each frame, with the previous frame being cleared before the next frame appears: <big>
:* &nbsp; |
:* &nbsp; |
:* &nbsp; /
:* &nbsp; /
Line 373: Line 373:


=={{header|NS-HUBASIC}}==
=={{header|NS-HUBASIC}}==
The 0.25 second delay assumes the program is running at 60 frames per second.
<lang NS-HUBASIC>10 DIM A(4)
<lang NS-HUBASIC>10 DIM A(4)
20 A(1)=236
20 A(1)=236