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: charmap.bas

' CHARMAP
' 25/05/2000
cls
ln=1
for i=0 to 255
  if (i<>12) and (i <>27) and (i<>10)
    ?

SVirjee_fractal_1.bas


'Written for Smallbasic
'Aug 2013 - S Virjee
centerx = xmax / 2
centery = ymax / 2
iter = 20
zoom = 2.8
p=-.745
q=.113
rect xmin,ymin, xmax, ymax color 1 FILLED
oldi=1
pqsq = (p*p + q*q)
L = (sqr(p*p + q*q) - 1/iter)*(sqr(p*p + q*q) - 1/iter)
H = (sqr(p*p + q*q) + 1/iter)*(sqr(p*p + q*q) + 1/iter)

for x = -centerx to centerx

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))

Pages

Subscribe to SmallBASIC RSS

User login

Recent comments