September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
17
Task/Animation/Smart-BASIC/animation-1.smart
Normal file
17
Task/Animation/Smart-BASIC/animation-1.smart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'Animation, by rbytes and Dutchman
|
||||
word$="Hello World! "
|
||||
'use button window with text
|
||||
SET BUTTONS CUSTOM
|
||||
SET BUTTONS FONT SIZE 40
|
||||
DRAW COLOR 0,0,0
|
||||
DO 'the button is redrawn each loop
|
||||
BUTTON "anim" TEXT word$ AT 130,100
|
||||
PAUSE .1
|
||||
'touching the button reverses the scrolling
|
||||
IF BUTTON_PRESSED("anim") THEN flag=1-flag
|
||||
IF flag THEN 'shift right
|
||||
word$=RIGHT$(word$,1)&LEFT$(word$,LEN(word$)-1)
|
||||
ELSE 'shift left
|
||||
word$=RIGHT$(word$,LEN(word$)-1)&LEFT$(word$,1)
|
||||
ENDIF
|
||||
UNTIL 0
|
||||
2
Task/Animation/Smart-BASIC/animation-2.smart
Normal file
2
Task/Animation/Smart-BASIC/animation-2.smart
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
'by rbytes and Dutchman!word$="Hello World! "!'use button window with text!
|
||||
SET BUTTONS CUSTOM!SET BUTTONS FONT SIZE 40!DRAW COLOR 0,0,0!DO!'the button is redrawn each loop!BUTTON "anim" TEXT word$ AT 130,100!PAUSE .1!'touching the button reverses the scrolling!IF BUTTON_PRESSED("anim") THEN flag=1-flag!IF flag THEN!'shift right!word$=RIGHT$(word$,1)&LEFT$(word$,LEN(word$)-1)!ELSE!'shift left!word$=RIGHT$(word$,LEN(word$)-1)&LEFT$(word$,1)!ENDIF!UNTIL 0
|
||||
1
Task/Animation/Smart-BASIC/animation-3.smart
Normal file
1
Task/Animation/Smart-BASIC/animation-3.smart
Normal file
|
|
@ -0,0 +1 @@
|
|||
w$="Hello World! "!1 BUTTON 0 TEXT w$ AT 0,0!PAUSE .1!IF BUTTON_PRESSED("0") THEN f=1-f!IF f THEN w$=RIGHT$(w$,1)&LEFT$(w$,LEN(w$)-1) ELSE w$=RIGHT$(w$,LEN(w$)-1)&LEFT$(w$,1)!GOTO 1
|
||||
1
Task/Animation/Smart-BASIC/animation-4.smart
Normal file
1
Task/Animation/Smart-BASIC/animation-4.smart
Normal file
|
|
@ -0,0 +1 @@
|
|||
w$="Hello World! "!1 BUTTON 0 TEXT w$ AT 0,0!PAUSE .1!IF BUTTON_PRESSED("0") THEN f=1-f!k=LEN(w$)-1!IF f THEN w$=RIGHT$(w$,1)&LEFT$(w$,k) ELSE w$=RIGHT$(w$,k)&LEFT$(w$,1)!GOTO 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue