mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-01 19:50:17 +00:00
389 lines
17 KiB
QBasic
389 lines
17 KiB
QBasic
CHDIR ".\programs\samples\thebob\abacus"
|
||
|
||
'****************************************************************************'
|
||
'
|
||
'--------------------------- A 1 2 G F X . B A S ----------------------------'
|
||
'------------------ Creates graphics files for ABACUS12.BAS -----------------'
|
||
'
|
||
'---------------- Copyright (C) 2007 by Bob Seguin (Freeware) ---------------'
|
||
'
|
||
'****************************************************************************'
|
||
|
||
DEFINT A-Z
|
||
DECLARE SUB PutBEAD (col, row, Index)
|
||
|
||
DIM SHARED Box(26000)
|
||
DIM SHARED Beads(450)
|
||
DIM NumBOX(1 TO 250)
|
||
DIM MenuBOX(400)
|
||
|
||
SCREEN 12
|
||
|
||
GOSUB SetPALETTE
|
||
MaxWIDTH = 397
|
||
MaxDEPTH = 86
|
||
x = 0: y = 0
|
||
RESTORE PixDATA
|
||
DO
|
||
READ DataSTRING$
|
||
FOR n = 1 TO LEN(DataSTRING$)
|
||
Char$ = MID$(DataSTRING$, n, 1)
|
||
SELECT CASE Char$
|
||
CASE "!"
|
||
n = n + 1
|
||
a$ = MID$(DataSTRING$, n, 1)
|
||
Count = ASC(a$) + 68
|
||
CASE "#"
|
||
n = n + 1
|
||
B$ = MID$(DataSTRING$, n)
|
||
FOR i = 1 TO LEN(B$)
|
||
t$ = MID$(B$, i, 1)
|
||
IF t$ = "#" THEN EXIT FOR
|
||
c$ = c$ + t$
|
||
NEXT i
|
||
Count = VAL("&H" + c$)
|
||
n = n + LEN(c$)
|
||
c$ = ""
|
||
CASE ELSE
|
||
Count = ASC(Char$) - 60
|
||
END SELECT
|
||
n = n + 1
|
||
Colr = VAL("&H" + MID$(DataSTRING$, n, 1))
|
||
FOR Reps = 1 TO Count
|
||
PSET (x, y), Colr
|
||
x = x + 1
|
||
IF x > MaxWIDTH THEN x = 0: y = y + 1
|
||
NEXT Reps
|
||
NEXT n
|
||
LOOP UNTIL y > MaxDEPTH 'DATA drawing loop ends here --------------------
|
||
|
||
GET (10, 60)-(22, 72), Box: PUT (10, 60), Box
|
||
GET (23, 60)-(35, 73), Box(100): PUT (23, 60), Box(100)
|
||
GET (36, 60)-(48, 73), Box(200): PUT (36, 60), Box(200)
|
||
GET (49, 60)-(61, 73), Box(300): PUT (49, 60), Box(300)
|
||
GET (62, 60)-(79, 71), Box(400): PUT (62, 60), Box(400)
|
||
GET (80, 60)-(97, 71), Box(500): PUT (80, 60), Box(500)
|
||
GET (0, 0)-(116, 54), Box(1000): PUT (0, 0), Box(1000)
|
||
GET (120, 0)-(388, 48), Box(3000): PUT (120, 0), Box(3000)
|
||
Index = 1
|
||
FOR x = 158 TO 260 STEP 11
|
||
IF x < 180 THEN Hop = 2 ELSE Hop = 0
|
||
GET (x + Hop, 50)-(x + 5 + Hop, 60), NumBOX(Index)
|
||
PUT (x + Hop, 50), NumBOX(Index)
|
||
Index = Index + 25
|
||
NEXT x
|
||
DEF SEG = VARSEG(NumBOX(1))
|
||
BSAVE "abanums.bsv", VARPTR(NumBOX(1)), 500
|
||
DEF SEG
|
||
GET (105, 60)-(123, 74), Beads: PUT (105, 60), Beads
|
||
GET (127, 60)-(145, 74), Beads(150): PUT (127, 60), Beads(150)
|
||
GET (150, 64)-(200, 75), Box(8000): PUT (150, 64), Box(8000)
|
||
GET (210, 64)-(239, 75), MenuBOX: GET (245, 64)-(265, 75), MenuBOX(100)
|
||
FOR x = 210 TO 265
|
||
FOR y = 64 TO 75
|
||
IF POINT(x, y) = 7 THEN PSET (x, y), 15
|
||
NEXT y
|
||
NEXT x
|
||
GET (210, 64)-(239, 75), MenuBOX(200): GET (245, 64)-(265, 75), MenuBOX(300)
|
||
PUT (210, 64), MenuBOX(200): PUT (245, 64), MenuBOX(300)
|
||
DEF SEG = VARSEG(MenuBOX(0))
|
||
BSAVE "abamenu.bsv", VARPTR(MenuBOX(0)), 800
|
||
DEF SEG
|
||
GET (271, 64)-(400, 75), Box(9000): PUT (271, 64), Box(9000)
|
||
PUT (398, 76), Box(9000)
|
||
GET (0, 76)-(524, 88), Box(9000): PUT (0, 76), Box(9000)
|
||
|
||
'Abacus drawing begins -------
|
||
VIEW SCREEN (200, 149)-(443, 295)
|
||
LINE (200, 149)-(443, 295), 6, BF
|
||
FOR Reps = 1 TO 120
|
||
x = FIX(RND * 250) + 200
|
||
y = FIX(RND * 164) + 149
|
||
Size = FIX(RND * 30) + 1
|
||
Hop = FIX(RND * 5) + 2
|
||
FOR Radius = 1 TO Size STEP Hop
|
||
CIRCLE (x, y), Radius, 12
|
||
NEXT Radius
|
||
NEXT Reps
|
||
FOR Reps = 1 TO 1200
|
||
x = FIX(RND * 250) + 200
|
||
y = FIX(RND * 200) + 108
|
||
Grain = FIX(RND * 20) + 1
|
||
FOR xx = x TO x + Grain
|
||
IF POINT(xx, y) = 6 THEN PSET (xx, y), 12
|
||
NEXT xx
|
||
NEXT Reps
|
||
VIEW
|
||
|
||
PUT (200, 149), Box, PSET
|
||
PUT (431, 149), Box(100), PSET
|
||
PUT (200, 282), Box(200), PSET
|
||
PUT (431, 282), Box(300), PSET
|
||
PUT (202, 193), Box(400), PSET
|
||
PUT (425, 193), Box(500), PSET
|
||
|
||
LINE (212, 161)-(431, 193), 0, BF
|
||
LINE (212, 203)-(431, 283), 0, BF
|
||
|
||
LINE (213, 160)-(430, 160), 8
|
||
LINE (213, 203)-(430, 203), 8
|
||
LINE (214, 149)-(429, 149), 4
|
||
LINE (200, 163)-(200, 281), 4
|
||
LINE (212, 194)-(431, 194), 4
|
||
LINE (212, 284)-(431, 284), 4
|
||
LINE (432, 161)-(432, 193), 4
|
||
LINE (432, 203)-(432, 283), 4
|
||
LINE (443, 163)-(443, 281), 8
|
||
LINE (214, 295)-(429, 295), 8
|
||
|
||
FOR x = 256 TO 410 STEP 44
|
||
LINE (x - 1, 197)-(x + 1, 199), 14, BF
|
||
LINE (x - 1, 200)-(x + 1, 200), 8
|
||
PSET (x - 1, 197), 15
|
||
NEXT x
|
||
|
||
FOR x = 223 TO 435 STEP 22
|
||
FOR y = 157 TO 283
|
||
IF POINT(x, y) = 0 THEN PSET (x, y), 7
|
||
NEXT y
|
||
NEXT x
|
||
VIEW
|
||
|
||
FOR x = 214 TO 412 STEP 22
|
||
FOR y = 220 TO 268 STEP 16
|
||
PUT (x, y), Beads, PSET
|
||
NEXT y
|
||
NEXT x
|
||
FOR x = 214 TO 412 STEP 22
|
||
PUT (x, 162), Beads(150), PSET
|
||
NEXT x
|
||
|
||
LINE (5, 5)-(634, 474), 10, B
|
||
LINE (7, 7)-(632, 472), 10, B
|
||
|
||
PUT (186, 48), Box(3000), PSET
|
||
FOR x = 186 TO 460
|
||
IF POINT(x, 66) <> 0 THEN PSET (x, 66), 7
|
||
IF POINT(x, 70) <> 0 THEN PSET (x, 70), 15
|
||
IF POINT(x, 74) <> 0 THEN PSET (x, 74), 15
|
||
IF POINT(x, 78) <> 0 THEN PSET (x, 78), 7
|
||
NEXT x
|
||
PUT (296, 96), Box(8000)
|
||
PUT (210, 124), MenuBOX
|
||
PUT (412, 124), MenuBOX(100)
|
||
FOR x = 44 TO 476 STEP 432
|
||
FOR y = 42 TO 372 STEP 110
|
||
PUT (x, y), Box(1000)
|
||
NEXT y
|
||
NEXT x
|
||
PUT (188, 372), Box(1000)
|
||
PUT (331, 372), Box(1000)
|
||
PUT (58, 446), Box(9000)
|
||
FOR x = 220 TO 418 STEP 22
|
||
PUT (x, 320), NumBOX
|
||
NEXT x
|
||
LINE (200, 316)-(443, 334), 10, B
|
||
FOR x = 221 TO 419 STEP 22
|
||
LINE (x, 298)-(x + 3, 316), 10, BF
|
||
NEXT x
|
||
LINE (200, 120)-(443, 138), 10, B
|
||
|
||
GET (324, 204)-(342, 218), Beads(300)
|
||
GET (212, 161)-(431, 330), Box
|
||
PutBEAD 6, 3, 0: PutBEAD 6, 7, 2
|
||
GET (324, 204)-(342, 283), Box(14000)
|
||
PutBEAD 6, 6, 2: PutBEAD 6, 7, 0
|
||
GET (324, 204)-(342, 283), Box(13000)
|
||
PutBEAD 6, 5, 2: PutBEAD 6, 6, 0
|
||
GET (324, 204)-(342, 283), Box(12000)
|
||
PutBEAD 6, 4, 2: PutBEAD 6, 5, 0
|
||
GET (324, 204)-(342, 283), Box(11000)
|
||
PutBEAD 6, 3, 2: PutBEAD 6, 4, 0
|
||
GET (324, 204)-(342, 283), Box(10000)
|
||
GET (324, 161)-(342, 193), Box(15000)
|
||
PutBEAD 6, 1, 2: PutBEAD 6, 2, 1
|
||
GET (324, 161)-(342, 193), Box(16000)
|
||
PUT (324, 161), Box(15000), PSET
|
||
DEF SEG = VARSEG(Box(0))
|
||
BSAVE "abasets.bsv", VARPTR(Box(0)), 34002
|
||
FOR y = 0 TO 320 STEP 160
|
||
GET (0, y)-(639, y + 159), Box
|
||
FileCOUNT = FileCOUNT + 1
|
||
FileNAME$ = "ABACUS" + LTRIM$(RTRIM$(STR$(FileCOUNT))) + ".BSV"
|
||
BSAVE FileNAME$, VARPTR(Box(0)), 52000
|
||
PUT (0, y), Box
|
||
NEXT y
|
||
DEF SEG
|
||
|
||
COLOR 11
|
||
LOCATE 14, 23: PRINT "The graphics files for ABACUS12.BAS"
|
||
LOCATE 15, 26: PRINT "have been successfully created."
|
||
LOCATE 17, 27: PRINT "You can now run the program."
|
||
LINE (120, 140)-(520, 340), 10, B
|
||
LINE (124, 144)-(516, 336), 10, B
|
||
|
||
a$ = INPUT$(1)
|
||
|
||
SYSTEM
|
||
|
||
SetPALETTE:
|
||
DATA 20, 0, 24, 0, 0, 42, 0, 0, 45, 10, 0, 50
|
||
DATA 55, 0, 0, 50, 0, 0, 40, 0, 0, 42, 42, 42
|
||
DATA 30, 0, 0, 20, 10, 55, 25, 5, 29, 40, 30, 63
|
||
DATA 45, 0, 0, 63, 0, 0, 60, 45, 20, 63, 63, 63
|
||
RESTORE SetPALETTE
|
||
OUT &H3C8, 0
|
||
FOR n = 1 TO 48
|
||
READ Intensity
|
||
OUT &H3C9, Intensity
|
||
NEXT n
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0=B?0=B=0=B?0=B>0=B?0=BB0=B>0=B?0=BA0=B>0>B=0=B>0=B=0=B?0=BA0=B?0=B=0"
|
||
DATA "=B?0=BA0=B?0=B=0=B?0=B=0=B?0=B=0=B?0=B=0=B>0>B=0=B>0=BF0=B?0=B=0=B>0=B"
|
||
DATA "=0=B=0=BB0=B?0=B=0=B>0=B>0=B?0=B?0=B@0=BA0=B?0=B>0=B?0=B=0=B?0=B=0=B?0"
|
||
DATA "=B=0=B?0=B=0=B>0=B>0=B=0=B?0=B?0=B=0=B?0=B=0=B=0=B>0=B?0=B=0=B?0=B=0=B"
|
||
DATA "@0=B?0=B=0=B?0=B=0=B>0=B>0=B=0=B@0=BB0?B>0=BC0@BB0?B?0?B>0=B>0=B>0=B=0"
|
||
DATA "@B>0=B>0?B?0=B>0?BC0=B>0>B=0=B>0=B>0?B>0=B>0=B>0@B=0=BB0?B>0=B?0=BA0=B"
|
||
DATA "?0=B>0?B?0=B?0=BC0=B>0?BC0>B=0=B>0>B?0?BC0@B=0=B?0=BB0@B=0@B?0@B>0?B?0"
|
||
DATA ">B=0=B>0>B?0=BC0=B?0=B>0>B>0=B>0=BA0=B?0=B>0=B>0=B=0@B>0=B=0=B@0=BA0=B"
|
||
DATA "?0=B?0?B>0@B>0=B?0=B>0?B>0=B>0=B>0=B>0?B>0=B=0=B>0@B=0=B=0=B?0?B?0?B?0"
|
||
DATA "=B=0=B>0?B?0?B>0=B>0=B>0=B=0=Bq0=B!v0=Bd0=B<>0"
|
||
|
||
SUB PutBEAD (col, row, Index)
|
||
|
||
IF row < 3 THEN Hop = 0 ELSE Hop = 10
|
||
PutCOL = col * 22 + 192
|
||
PutROW = row * 16 + 146 + Hop
|
||
PutINDEX = Index * 150
|
||
PUT (PutCOL, PutROW), Beads(PutINDEX), PSET
|
||
|
||
END SUB
|