Results 1 to 4 of 4

Thread: opengl colors

  1. #1

    opengl colors


    Does anyone have a chart that tells what the RGB mixes are for colors?? I'm using floating point ie:

    glColor3f(1.0, 1.0, 1.0);

    I know the primary colors but i need the mix for gold, silver(gray will do) and some others.


  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000

    Re: opengl colors

    Just look in a painting software(windows paint for exemple). There is always a place where you can get every possible colors and they give you their RGB values.

    Just find your color and modify your components like this :

    glComponent = componentvalue / 255.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    milano, italy

    Re: opengl colors

    i see you and other people post the same questions here (beginners) and into the advanced section of this message board.

    no problems about issues, i'm glad to see how many people do R&D about opengl as a hobby or for work.

    I, and i believe others, read normally the beginners and advanced sections, so if some help can be given, it will be post.

    in fact, in my opinion there's no particular reason to have two different sections about the same topic...
    i saw people post beginner-rank questions into the advanced section, as it's true for the opposite.

    my request:
    can you avoid to post the same questions here and there?

    it's not that i think it's wrong: after all, it's like commercials, the many they are, the more probability an answer will be.

    but, i would prefer to keep things in order, especially when it's time to get some references: looking in one place is faster than looking in two.


  4. #4

    Re: opengl colors

    sorry, i wanted an answer fast and thought this could double my odds

    I'll try and and keep it to one board

Similar Threads

  1. Replies: 3
    Last Post: 06-19-2016, 08:11 AM
  2. Replies: 2
    Last Post: 06-15-2015, 03:26 AM
  3. OpenGL and Colors
    By Fernando in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 09-10-2002, 07:11 PM
  4. opengl colors
    By eckiller in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-19-2000, 06:44 AM
  5. can opengl run in 256 colors?
    By tmwp197 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-16-2000, 02:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean