Qbasicnews.com

Full Version: Masks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i need to load a guy i drew in ms paint into qbasic but im wondering how to make a mask for him.

Anonymous

i havent used masks in forever... but i BELIEVE that you color anything thats not trasparent (not black usually), white

Anonymous

had it backwards =p


Code:
def seg = &ha000

for y = 0 to spritey

for x = 0 to spritex

if color <> 0 then poke ((y * 320) + x), color

next:next


masks are all well and good but it would do you good to figure out what this code means =)
k i will also how would you not use masks?

Anonymous

Quote:k i will also how would you not use masks?

learn what the term "double buffering" means first
chaos, he would still require masks.

Anonymous

erm... double buffering is the term for how the data is stored in the image array

once he learned how that worked, he could figure out how to read the data and "PSET" it manually, (ignoring black) which is what i was getting at
but i loaded a bmp
guy.BMP
in paint but when i was doing graphics like
Code:
data 1,0,1,5,1,0,1
data 1,0,1,5,1,0,1

my masks were like this
Code:
data 1,255,1,5,1,255,1
data 1,255,1,5,1,255,1
so how do i make a mask im using Z!res BMP loader and i nothing of how it works.
im just wondering cause its quite odd to see pretty nice graphics with a uh bitmaped messed up color wise dude
My guess is you Make a bmp with black background, and make the same one with a white background, it should work the same.
Pages: 1 2