Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Animation/Yabasic/animation.basic
Normal file
22
Task/Animation/Yabasic/animation.basic
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
clear screen
|
||||
open window 400, 150
|
||||
backcolor 0, 0, 0
|
||||
clear window
|
||||
|
||||
color 250, 120, 0
|
||||
texto$ = "Hello world! "
|
||||
l = len(texto$)
|
||||
dir = 1
|
||||
do
|
||||
release$ = inkey$(.25)
|
||||
if mouseb(release$) = -1 then
|
||||
dir = -dir
|
||||
end if
|
||||
clear window
|
||||
text 100, 90, texto$, "modern30"
|
||||
if dir = 1 then
|
||||
texto$ = right$(texto$, l-1) + left$(texto$, 1)
|
||||
else
|
||||
texto$ = right$(texto$, 1) + left$(texto$, l-1)
|
||||
end if
|
||||
loop
|
||||
Loading…
Add table
Add a link
Reference in a new issue