Post Reply 
PIXON_P Alpha blending
05-08-2017, 05:21 AM
Post: #6
RE: PIXON_P Alpha blending
Hello,

Han is correct in saying that doing repeat alpha will "max out" following the sequence Un+1=((256-a)*Un+a*c2)/256, which has an asymptotic value which is not 255...

Depending on the number of drawn pixels, it might be better to create a matrix of numbers that you increment "off screen", and that you then display.
The fastest, assuming that you do not get over 65536 iterations per points might be to use a string...
Create a string of size 320*240, fill it with 0s str(i):=0; and then inc the item of interest on each iteration str(y*320+x+1):= str(y*320+x+1)+1;
then display the content of the string.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PIXON_P Alpha blending - Cristian Arezzini - 05-06-2017, 05:35 PM
RE: PIXON_P Alpha blending - Carlos295pz - 05-07-2017, 11:22 AM
RE: PIXON_P Alpha blending - Han - 05-07-2017, 02:27 PM
RE: PIXON_P Alpha blending - cyrille de brébisson - 05-08-2017 05:21 AM
RE: PIXON_P Alpha blending - webmasterpdx - 09-12-2017, 09:33 AM



User(s) browsing this thread: 1 Guest(s)