home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7340 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  858 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!UB.com!gouche!Manticore.COM
  2. From: grant@Manticore.COM (Grant J. Munsey)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Compositing with alpha
  5. Message-ID: <359@gouche.UUCP>
  6. Date: 20 Nov 92 23:26:10 GMT
  7. Sender: grant@gouche.UUCP
  8. Reply-To: grant@Manticore.COM
  9. Lines: 9
  10.  
  11. Anyone know what the formula is for determining the value of a pixel
  12. when a color is composited into it. I'm talking about the case where
  13. both pixels have rgb and alpha channels. I understand how to do the
  14. color components but I'm stumped on what the final alpha value is. An
  15. example take a color red with .5 alpha {1,0,0,.5} and composite it into
  16. a pixel with gray and .2 alpha {.5,.5,.5,.2} what is the result {?,?,?,?}.
  17. ----
  18. Grant Munsey, Mainticore, Inc. (408)252-1135
  19. grant@Manticore.COM,  uunet!ub-gate!gouche!grant   NeXTMail ok.
  20.