mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-31 13:30:15 +00:00
402 lines
19 KiB
QBasic
402 lines
19 KiB
QBasic
CHDIR ".\programs\samples\thebob\biochart"
|
||
|
||
'*******************************************************
|
||
'----------------------- BCGFX.BAS ---------------------
|
||
'*******************************************************
|
||
|
||
DEFINT A-Z
|
||
DECLARE SUB PrintSTRING (x, y, Prnt$)
|
||
DIM SHARED Box(12000)
|
||
DIM SHARED FontBOX(6000)
|
||
|
||
SCREEN 12
|
||
GOSUB SetPALETTE
|
||
|
||
MaxWIDTH = 485
|
||
MaxDEPTH = 114
|
||
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 --------------------
|
||
|
||
DIM NumBOX(300)
|
||
FOR x = 227 TO 362 STEP 15
|
||
GET (x, 74)-(x + 6, 86), NumBOX(Index)
|
||
Index = Index + 30
|
||
NEXT x
|
||
DEF SEG = VARSEG(NumBOX(0))
|
||
BSAVE "brsnums.bsv", VARPTR(NumBOX(0)), 600
|
||
DEF SEG
|
||
|
||
GET (112, 55)-(198, 72), Box
|
||
PUT (112, 55), Box
|
||
PUT (16, 438), Box
|
||
GET (0, 55)-(104, 72), Box
|
||
PUT (0, 55), Box
|
||
PUT (158, 438), Box
|
||
GET (208, 55)-(338, 72), Box
|
||
PUT (208, 55), Box
|
||
PUT (320, 438), Box
|
||
GET (348, 55)-(448, 72), Box
|
||
PUT (348, 55), Box
|
||
PUT (503, 438), Box
|
||
CIRCLE (110, 447), 5, 5
|
||
PAINT STEP(0, 0), 9, 5
|
||
CIRCLE (272, 447), 5, 5
|
||
PAINT STEP(0, 0), 8, 5
|
||
CIRCLE (460, 447), 5, 5
|
||
PAINT STEP(0, 0), 6, 5
|
||
CIRCLE (614, 447), 5, 5
|
||
PAINT STEP(0, 0), 13, 5
|
||
GET (0, 0)-(490, 55), Box '7000
|
||
PUT (0, 0), Box
|
||
GET (20, 438)-(620, 454), Box(7000)
|
||
PUT (20, 438), Box(7000)
|
||
|
||
FontBOX(0) = 60: FontBOX(1) = 3
|
||
Index = 2
|
||
FOR y = 74 TO 102 STEP 14
|
||
FOR x = 0 TO 465 STEP 15
|
||
GET (x, y)-(x + 14, y + 13), FontBOX(Index)
|
||
PUT (x, y), FontBOX(Index)
|
||
Index = Index + 60
|
||
NEXT x
|
||
NEXT y
|
||
FOR Index = 2 TO 93 * 60 + 2 STEP 60
|
||
LINE (0, 200)-(20, 220), 0, BF
|
||
PUT (0, 200), FontBOX(Index)
|
||
x1 = -1: x2 = -1
|
||
FOR x = 0 TO 20
|
||
FOR y = 200 TO 220
|
||
IF POINT(x, y) <> 0 AND x1 = -1 THEN x1 = x
|
||
NEXT y: NEXT x
|
||
FOR x = 20 TO 0 STEP -1
|
||
FOR y = 200 TO 220
|
||
IF POINT(x, y) <> 0 AND x2 = -1 THEN x2 = x
|
||
NEXT y: NEXT x
|
||
FOR cx = x1 TO x2
|
||
FOR cy = 200 TO 207
|
||
IF POINT(cx, cy) <> 0 THEN PSET (cx, cy), 7
|
||
NEXT cy
|
||
NEXT cx
|
||
IF Index = 3242 THEN Margin = 0 ELSE Margin = 1
|
||
GET (x1, 200)-(x2 + Margin, 213), FontBOX(Index)
|
||
NEXT Index
|
||
LINE (0, 200)-(20, 220), 0, BF
|
||
DEF SEG = VARSEG(FontBOX(0))
|
||
BSAVE "brsmssb.fnt", VARPTR(FontBOX(0)), 5643 * 2
|
||
DEF SEG
|
||
PrintSTRING 10, 6, "Freeware - Copyright (C) 2007 by Bob Seguin"
|
||
PrintSTRING 500, 6, "BOBSEG@sympatico.ca"
|
||
FOR x = 10 TO 630
|
||
IF x = 264 THEN x = 500
|
||
FOR y = 6 TO 20
|
||
IF y > 13 THEN Colr = 1 ELSE Colr = 2
|
||
IF POINT(x, y) <> 0 THEN PSET (x, y), Colr
|
||
NEXT y
|
||
NEXT x
|
||
GET (10, 6)-(264, 18), Box(10000)
|
||
PUT (10, 6), Box(10000)
|
||
GET (500, 6)-(630, 18), Box(11200)
|
||
PUT (500, 6), Box(11200)
|
||
DEF SEG = VARSEG(Box(0))
|
||
BSAVE "brsheads.bsv", VARPTR(Box(0)), 24000
|
||
DEF SEG
|
||
|
||
LINE (160, 185)-(477, 227), 2, BF
|
||
LINE (160, 185)-(477, 227), 0, B
|
||
LINE (160, 185)-(477, 185), 5
|
||
LINE (160, 185)-(160, 227), 5
|
||
|
||
LINE (376, 194)-(393, 208), 15, BF
|
||
LINE (376, 194)-(393, 208), 0, B
|
||
LINE (377, 208)-(393, 208), 5
|
||
LINE (393, 195)-(393, 208), 5
|
||
|
||
LINE (399, 194)-(416, 208), 15, BF
|
||
LINE (399, 194)-(416, 208), 0, B
|
||
LINE (400, 208)-(416, 208), 5
|
||
LINE (416, 195)-(416, 208), 5
|
||
|
||
LINE (422, 194)-(453, 208), 15, BF
|
||
LINE (422, 194)-(453, 208), 0, B
|
||
LINE (423, 208)-(453, 208), 5
|
||
LINE (453, 195)-(453, 208), 5
|
||
PSET (395, 201), 15
|
||
DRAW "R2DNL2uBR22R2dl2"
|
||
PrintSTRING 186, 194, "Enter a target date [mm-dd-yyyy]:"
|
||
PrintSTRING 202, 209, "(Just press ENTER to restore current date)"
|
||
FOR x = 182 TO 375
|
||
FOR y = 191 TO 208
|
||
IF POINT(x, y) <> 2 THEN PSET (x, y), 15
|
||
NEXT y
|
||
NEXT x
|
||
FOR x = 182 TO 432
|
||
FOR y = 209 TO 222
|
||
IF POINT(x, y) <> 2 THEN PSET (x, y), 10
|
||
NEXT y
|
||
NEXT x
|
||
GET (160, 185)-(477, 227), Box(3500)
|
||
LINE (170, 190)-(370, 216), 2, BF
|
||
LINE (170, 209)-(432, 222), 2, BF
|
||
GET (374, 188)-(470, 210), Box
|
||
PUT (374, 193), Box, PSET
|
||
PrintSTRING 190, 199, "Enter a birth date [mm-dd-yyyy]:"
|
||
FOR x = 182 TO 375
|
||
FOR y = 199 TO 214
|
||
IF POINT(x, y) <> 2 THEN PSET (x, y), 15
|
||
NEXT y
|
||
NEXT x
|
||
GET (160, 185)-(477, 227), Box
|
||
PUT (160, 185), Box
|
||
DEF SEG = VARSEG(Box(0))
|
||
BSAVE "brsinpt.bsv", VARPTR(Box(0)), 14000
|
||
DEF SEG
|
||
|
||
LINE (200, 170)-(439, 280), 14, B
|
||
LINE (197, 167)-(442, 283), 14, B
|
||
PrintSTRING 260, 195, "The graphics files for"
|
||
PrintSTRING 231, 210, "the BIORHYTHM CHART program"
|
||
PrintSTRING 231, 224, "have been successfully created."
|
||
PrintSTRING 222, 247, "It can now be run without exploding."
|
||
|
||
a$ = INPUT$(1)
|
||
END
|
||
|
||
PixDATA:
|
||
|
||
DATA "#215#0=1=3C5=2<>0=3@5=2<>0=3@5=2<>0=3@5=2<>0=2H5=2M0=4J5=1<>0C5<43>0C5<43>0C5<43>0=3"
|
||
DATA "M5=2J0M5<4D>0=3C5=4<>0=3C5=4<>0=3C5=4<>0=1=4P5=4G0=3N5=3<>0E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0>EE0>E>0>EE0>E>0>EE0>E>0>EE0>EJ0>EH0"
|
||
DATA ">EI0>E>0>EF0@EF0DED0?EH0>E=0>EG0>EH0>EH0>EJ0>E{0>E>0>EE0>E>0>EE0>EI0>E"
|
||
DATA ">0>EE0>EI0>EI0>E>0>EE0>E>0>EE0>EI0>EI0@EG0>EI0>E=0>E=0>EC0>E>0>EE0>E>0"
|
||
DATA ">EE0>E>0>EE0>E>0>EE0>EK0>EG0>EI0>E>0>EF0@EF0DED0?EH0>E=0>EF0>EI0>EH0>E"
|
||
DATA "J0>E{0>E>0>EE0>E>0>EE0>E>0>EE0>E>0>EE0>E>0>EE0>EI0>E>0>EE0>E>0>EE0>EI0"
|
||
DATA ">EI0>E=0>EF0>EI0>E=0>E=0>EC0>E>0>EE0>E>0>EE0>E>0>EE0>E>0>EE0>EI0>E=0>E"
|
||
DATA "F0>EI0>E=0?EG0>EH0>E>0>ED0>E=0>EH0?EF0>EJ0>EH0>EJ0>E|0AEE0AEG0@EG0AEF0"
|
||
DATA "@EF0>EJ0AEE0>E>0>EE0>EI0>EI0>E>0>EE0>EI0>E=0>E=0>EC0>E>0>EF0@EF0AEG0AE"
|
||
DATA "E0>EJ0?EH0>EI0AEG0>EH0>E>0>ED0>E=0>EH0>EG0AEG0>EH0>EJ0>E!Y0>Ec0>E<>0>EM0"
|
||
DATA ">E<>0>EX0>EG0>EI0>E!V0AEd0>E<>0>EM0>E<>0?E<>0"
|
||
|
||
SetPALETTE:
|
||
RESTORE SetPALETTE
|
||
DATA 0, 0, 21, 21, 8, 43, 24, 10, 48, 26, 11, 53
|
||
DATA 28,12,58, 32, 13, 63, 63, 63, 21, 42, 42, 42
|
||
DATA 63, 0, 0, 21, 31, 63, 42, 42, 42, 55, 55, 55
|
||
DATA 0, 0, 42, 63, 21, 63, 32, 32, 42, 63, 63, 63
|
||
RESTORE SetPALETTE
|
||
OUT &H3C8, 0
|
||
FOR n = 1 TO 48
|
||
READ Colr
|
||
OUT &H3C9, Colr
|
||
NEXT n
|
||
RETURN
|
||
|
||
SUB PrintSTRING (x, y, Prnt$)
|
||
|
||
FOR i = 1 TO LEN(Prnt$)
|
||
Char$ = MID$(Prnt$, i, 1)
|
||
IF Char$ = " " THEN
|
||
x = x + FontBOX(1)
|
||
ELSE
|
||
Index = (ASC(Char$) - 33) * FontBOX(0) + 2
|
||
PUT (x, y), FontBOX(Index)
|
||
x = x + FontBOX(Index)
|
||
END IF
|
||
NEXT i
|
||
|
||
END SUB
|