Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: mix color

  1. #1
    Newbie Newbie
    Join Date
    May 2013

    Exclamation mix color

    any body tell me how mix color
    1:for ex if i want dark magenta value how this
    i know the magenta gcolor3f(1.0,0.0,1.0)

    2:again iwant get dark red color vaule
    gcolor3f(1.0,0.0,0.0) this for red

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    To do colour mixing correctly you need to to convert your colours to a system such as HSL not RGB. To simply darken a colour, reduce each component by an equal percent; eg dark red (0.5,0,0) dark magenta (0.5,0,0.5)

Posting Permissions

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