home *** CD-ROM | disk | FTP | other *** search
- 1 '
- 2 ' BOX Demo
- 3 '
- 10 DEFINT a-z
- 11 for i = 1 to 5
- 30 RANDOMIZE -4525:CLS:LOCATE 1,1 : f$ = "┌─┐│ │└─┘":m=-1
- 32 call box (78,23,f$,7,0) : locate 5,10 : call box (58,13,f$,7,0) : locate 10,20 : call box (38,3,f$,7,0)
- 35 for rep = 1 to 150
- 40 xspan = INT(RND(1)*30)+1 : vspan = INT(RND(1)*15)+1
- 220 if m=-1 then mode=0 else mode = INT(RND(1)*6)
- 230 x = INT(RND(1)*77)+1 : IF x > (79 - (xspan+2)) then 230 'x = (80 - xxspan)
- 240 y = INT(RND(1)*22)+1 : IF y > (24 - (vspan+2)) then 240 'y = (25 - yyspan)
- 250 c = RND(1)*127+1:if int(c/16) = c mod 16 then 250
- 300 locate y,x:call box(xspan,vspan,f$,c,mode)
- 310 next
- 320 if m=-1 then m=0:goto 35
-