File: ring_01.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (28 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
rem Ring example thanks to Joel Kahn

clg
fastgraphics
rm=0.0
st=0.0251
imx=3.281
imy=3.095
bm=0.2
x=135.0
y=2.0

ring:
rm=rm+st
x=x+imx*cos(rm)
y=y+imy*sin(rm)
q=y*bm
color clear
rect x,y,q,q
color black
ex=x+q
ey=y+q
line x,y,ex,y
line x,y,x,ey
line ex,ey,ex,y
line ex,ey,x,ey
refresh
goto ring