9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Porter-Duff alpha blending
@ 2009-03-04 21:53 erik quanstrom
  2009-03-04 22:01 ` andrey mirtchovski
  0 siblings, 1 reply; 29+ messages in thread
From: erik quanstrom @ 2009-03-04 21:53 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 152 bytes --]

this is a picture of what this looks like on my screen.
your attached png is 4 stripes of
white->blue
blue->blue
magenta->blue
cyan->blue

- erik

[-- Attachment #2: αpic.jpg --]
[-- Type: image/jpeg, Size: 14 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread
* [9fans] Porter-Duff alpha blending
@ 2009-03-05 18:31 maht
  2009-03-04 21:18 ` andrey mirtchovski
  2009-03-04 23:24 ` Russ Cox
  0 siblings, 2 replies; 29+ messages in thread
From: maht @ 2009-03-05 18:31 UTC (permalink / raw)
  To: 9fans

Hi,

I decided to try some draw(2) exploration and I'm not getting what I
expected from alpha blending.

If I apply alpha to RGB24 images they change as expected but if I use
RGBA32 images and try to apply alpha it's going weird on me (or I am
weird on it).

If I apply setalpha(DRed, 0x7F) and then draw() it to screen instead of
being less red it goes blue!

I've posted some sample code and the outputs at
http://maht0x0r.blogspot.com/2009/03/o-that-way-madness-lies.html

Any explanations would hopefully be illuminating.

matt



^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] Porter-Duff alpha blending
@ 2009-03-04 21:32 erik quanstrom
  2009-03-04 21:37 ` andrey mirtchovski
  0 siblings, 1 reply; 29+ messages in thread
From: erik quanstrom @ 2009-03-04 21:32 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 56 bytes --]

it looks fine on a native plan 9 386 terminal.

- erik

[-- Attachment #2: α.png --]
[-- Type: image/png, Size: 5741 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2009-03-09 16:40 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-04 21:53 [9fans] Porter-Duff alpha blending erik quanstrom
2009-03-04 22:01 ` andrey mirtchovski
  -- strict thread matches above, loose matches on Subject: below --
2009-03-05 18:31 maht
2009-03-04 21:18 ` andrey mirtchovski
2009-03-04 23:24 ` Russ Cox
2009-03-04 21:32 erik quanstrom
2009-03-04 21:37 ` andrey mirtchovski
2009-03-04 21:42   ` andrey mirtchovski
2009-03-04 21:44   ` erik quanstrom
2009-03-04 21:53     ` andrey mirtchovski
2009-03-04 22:03       ` erik quanstrom
2009-03-04 22:21         ` andrey mirtchovski
2009-03-04 22:22         ` Devon H. O'Dell
2009-03-04 22:45           ` andrey mirtchovski
2009-03-04 22:59             ` erik quanstrom
2009-03-04 23:05               ` andrey mirtchovski
2009-03-04 23:58             ` Charles Forsyth
2009-03-05  1:04               ` erik quanstrom
2009-03-05  1:29               ` andrey mirtchovski
2009-03-05  2:07                 ` andrey mirtchovski
2009-03-05  2:22                   ` erik quanstrom
2009-03-06  3:21                     ` andrey mirtchovski
2009-03-06 20:48                       ` Russ Cox
2009-03-06 21:42                         ` andrey mirtchovski
2009-03-08 22:33                           ` Jeff Sickel
2009-03-09 15:28                             ` Michaelian Ennis
2009-03-09 16:40                               ` Jeff Sickel
2009-03-09 14:00                         ` erik quanstrom
2009-03-09 15:32                           ` yy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).