flat assembler
Message board for the users of flat assembler.

Index > OS Construction > blending a background?

Author
Thread Post new topic Reply to topic
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon
pmode and all that is setup up already, but I was wondering how you would go about blending two background colors together in fasm.. thanks!
Post 15 Mar 2005, 19:43
View user's profile Send private message Reply with quote
Scanner



Joined: 14 May 2005
Posts: 7
Scanner
Alpha blending of the text onto a background bitmap ?

If that is the case, check the net for some alpha blending algorithm. You will need to switch to graphics mode to be able to do that though.
Post 14 May 2005, 12:05
View user's profile Send private message Yahoo Messenger Reply with quote
deltre



Joined: 17 Apr 2005
Posts: 12
Location: Netherlands
deltre
What graphics mode do you use? In default mode 0x13, its harder to blend colors because you're dealing with the palette - using the RGB encoding it's alot easier. For example, to print a 50% transparent image into your current background image, for every pixel:

(Red value for background pixel) + (Red value for image) SHR 1

Same for green and blue, and for every pixel the image would be on.
Post 23 May 2005, 09:07
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.