Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Calcualtion of Alfa chanel based on RGB

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Brooklyn
    Posts
    26

    Calcualtion of Alfa chanel based on RGB

    Does anyone know formula, for calculation of the Alfa value based on R G B values?

  2. #2
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,345

    Re: Calcualtion of Alfa chanel based on RGB

    There is no such formula. Alpha is independent of RGB.
    If you want to use say the brightness as alpha the formula A = 0.30*R + 0.59*G + 0.11*B

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Brooklyn
    Posts
    26

    Re: Calcualtion of Alfa chanel based on RGB

    Thaks a lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •