Einzelnen Beitrag anzeigen

Medium

Registriert seit: 23. Jan 2008
3.679 Beiträge
 
Delphi 2007 Enterprise
 
#10

Re: [GR32] How to add intensity?

  Alt 22. Jan 2010, 19:03
Zitat von WojTec:
@Medium, when Color is for example clYellow and 3rd parameter is 1, any pixel of output is = Color. This is wrong - should be as is on example image above.
Oops, I switched the "t" and "(1-t)". Just exchange these, and you're good to go.

Regarding the code you posted: You cannot simply multiply with whole combined RGB-values. You must handle each color channel separately.
"When one person suffers from a delusion, it is called insanity. When a million people suffer from a delusion, it is called religion." (Richard Dawkins)
  Mit Zitat antworten Zitat