sandmann999
Programmer
I'm trying to figure out how to make it so that when I use the PUT statement, I can make it not show certain colors, hence having a background image show through instead of just a black box around the image.
For example, in the following code, it draws a random background, and then places an X in the middle of the background, but there is a black box around the X.
SCREEN 13
RANDOMIZE TIMER
FOR y = 1 TO 5
FOR x = 1 TO 5
READ z%
LINE (x * 5, y * 5)-(x * 5 + 5, y * 5 + 5), z%, BF
NEXT
NEXT
DIM test%(1000)
GET (5, 5)-(30, 30), test%
CLS
FOR i = 130 TO 190
FOR j = 70 TO 130
PSET (i, j), RND * 250
NEXT
NEXT
PUT (145, 85), test%, PSET
DATA 1,0,0,0,1
DATA 0,1,0,1,0
DATA 0,0,1,0,0
DATA 0,1,0,1,0
DATA 1,0,0,0,1
How can I make it so wherever black is, the background shows through instead?
For example, in the following code, it draws a random background, and then places an X in the middle of the background, but there is a black box around the X.
SCREEN 13
RANDOMIZE TIMER
FOR y = 1 TO 5
FOR x = 1 TO 5
READ z%
LINE (x * 5, y * 5)-(x * 5 + 5, y * 5 + 5), z%, BF
NEXT
NEXT
DIM test%(1000)
GET (5, 5)-(30, 30), test%
CLS
FOR i = 130 TO 190
FOR j = 70 TO 130
PSET (i, j), RND * 250
NEXT
NEXT
PUT (145, 85), test%, PSET
DATA 1,0,0,0,1
DATA 0,1,0,1,0
DATA 0,0,1,0,0
DATA 0,1,0,1,0
DATA 1,0,0,0,1
How can I make it so wherever black is, the background shows through instead?