flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > Alpha blend

Author
Thread Post new topic Reply to topic
Bondy



Joined: 27 Nov 2005
Posts: 9
Bondy 28 Nov 2005, 20:20
found an equation for alpha blending.

BlendColour = ((AlphaValue * (ForeColour - BackColour)) / 256) + BackColour

This has to be done for all 3 channels R/G/B

So I wrote a little prog just to test it.

Corrected a mistake new source & binary sorry


Description:
Download
Filename: Alpha Blend.zip
Filesize: 26.02 KB
Downloaded: 868 Time(s)

Post 28 Nov 2005, 20:20
View user's profile Send private message 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 can attach files in this forum
You can download files in this forum


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

Website powered by rwasa.