Welcome to SmallBASIC

SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax.

Featured sample program

Featured sample program: cgi_counter.bas

'' This is the famous "CGI Counter" in the SmallBasic version
'' treat it as any Perl or Shell sc

fibanacci3.bas

Posted by an anonymous user

BezierBounce.bas


for
n=1 to 16
append a,rnd*(xmax-20)+10
append a,rnd*(ymax-20)+10
append d,(rnd*3+1)*sgn(rnd-.5)
append d,(rnd*3+1)*sgn(rnd-.5)
next

f=rgbf(1,1,1):l1=bez(a,3)
repeat

for
n=0 to ubound(a)
k=a(n)+d(n):s=ymax
if
n%2=0:s=xmax:endif
if
(k>s) or (kd(n)=(rnd*3+1)*sgn(-d(n))

plasmaJVSH.bas


'Plasma generator
'This program creates a plasma surface, which looks oily or silky.

r=rnd:g=rnd:b=rnd
for
n=1 to 5
r1=r:g1=g:b1=b
repeat:r=rnd:until abs(r-r1)>.3
repeat:g=rnd:until abs(g-g1)>.3
repeat:b=rnd:until abs(g-g1)>.3
for m=0 to 17:m1=17-m
f1=(m*r)/18:f2=(m*g)/18:f3=(m*b)/18:c

Pages

Subscribe to SmallBASIC RSS

User login

Recent comments