Results 1 to 3 of 3

Thread: creating a color palette

  1. #1
    Member Contributor
    Join Date
    Sep 2008

    creating a color palette


    I want to create a color palette for my painting program. Its just some kind of polygon with all colors on it and I should be able to select based on the intersected color.Can someone help me how to do this pls.

    Thanks & Regards,

  2. #2

    Re: creating a color palette

    Can't you use the colour palettes included with GUI libraries?

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Grenoble - France

    Re: creating a color palette

    brett01, you can use glReadPixels() on the pixel at mouse position, you will be able to read its exact color.

Similar Threads

  1. Dynamic palette (color lut)
    By GabrielBianco in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 04-23-2007, 01:34 PM
  2. Palette assigning to color indexed textures
    By Tomy in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-06-2005, 02:19 AM
  3. OpenGL ScreenSaver issue - Color palette gets garbled!
    By MasterBaker in forum OpenGL: Windows
    Replies: 1
    Last Post: 12-31-2004, 05:26 AM
  4. Color palette
    By Clark in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-18-2001, 12:53 AM
  5. RGB vs Color Index, is palette dead?
    By Anonymous Coward in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-10-2000, 06:10 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