File: animatedhelp.kbs

package info (click to toggle)
basic256 2.0.99.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,888 kB
  • sloc: cpp: 17,185; yacc: 4,025; lex: 1,466; java: 1,091; sh: 39; xml: 33; makefile: 20
file content (22 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# animatedhelp.kbs - show another use of imgload
# 2016-09-08 j.m.reneau - updated for new slice logic
clg
fastgraphics
imgload 150,150,"test.bmp"
x = 50
y = 50
r = 0
while true
   x = x + rand * 10
   y = y + rand * 10
   r = r + rand * .2
   if x < 15 then x = graphwidth-15
   if x >= graphwidth-15 then x = 15
   if y < 15 then y = graphheight-15
   if y >= graphheight-15 then y = 15
   save$ = getslice(x-15,y-15,30,30)
   imgload x, y, 1, r, "help.png"
   refresh
   pause .05
   putslice x-15,y-15,save$[]
end while