Skip to content

Commit 13fb43d

Browse files
author
SlithyMatt
committed
added Agon bitmap plot
1 parent 3edeef9 commit 13fb43d

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

agon/M2BITMAP.BAS

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
10 MODE 2: CLS
2+
30 FOR I% = 0 TO 47
3+
40 R% = I% / 16
4+
50 R% = R% * 85
5+
60 G% = (I% AND 15) / 4
6+
70 G% = G% * 85
7+
80 B% = I% AND 3
8+
90 B% = B% * 85
9+
100 VDU 23,27,0,I%
10+
110 VDU 23,27,1,1;1;R%,G%,B%,255
11+
120 NEXT I%
12+
130 FOR PY%=0 TO 199
13+
140 YZ = PY%*2.625/200-1.3125
14+
150 FOR PX%=0 TO 319
15+
160 XZ = PX%*3.5/320-2.5
16+
170 X = 0: Y = 0
17+
180 FOR I%=0 TO 47
18+
190 IF X*X+Y*Y > 4 THEN GOTO 240
19+
200 XT=X*X-Y*Y+XZ
20+
210 Y=2*X*Y+YZ
21+
220 X=XT
22+
230 NEXT I%
23+
240 VDU 23,27,0,I%
24+
250 VDU 23,27,3,PX%;PY%;
25+
260 NEXT PX%
26+
270 NEXT PY%
27+
280 T$=GET$
28+
290 MODE 1: COLOUR 3

x16/x16-mandelbrot-vga.bas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
30 POKE $9F2D,$07
33
40 POKE $9F2F,$20
44
50 POKE $9F29,$11
5-
100 FOR PY=0 TO 239
6-
110 FOR PX=0 TO 319
7-
120 XZ = PX*3.5/320-2.5
8-
130 YZ = PY*2.625/240-1.3125
5+
100 FOR PY=0 TO 199
6+
110 YZ = PY*2.625/200-1.3125
7+
120 FOR PX=0 TO 319
8+
130 XZ = PX*3.5/320-2.5
99
140 X = 0
1010
150 Y = 0
1111
160 FOR I=0 TO 47

0 commit comments

Comments
 (0)