Thread: color calculation problems.

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    88

    Cool color calculation problems.

    1. if i have a color value , for example 123456, how can i calc. the 3 RGB element values ??

    2. i have 2 RGB sets , for example ( r1,g1,b1 ) , ( r2,g2,b2).
    I want to blend it together, 50% 50% transparent.

    Is the solution ( (r1+r2)/2, (g1+g2)/2, (b1+b2)/2 ) or else ?

    THX.

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    there is a buttload of info on google

    such as

    http://www.w3.org/TR/2000/CR-SVG-20001102/masking.html

    and

    http://palms.ee.princeton.edu/plx/su...-blending.html

    edit:: in case you think im being a jerk, im not, i just cant remember the formula right now and if i did it would probably be wrong.
    Last edited by no-one; 03-16-2003 at 09:27 AM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    88
    thx.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. Rendering problems (DirectX?)
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 08-17-2006, 12:17 PM
  5. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM