Results 1 to 3 of 3

Thread: QColor generator?

  1. #1
    Join Date
    Sep 2015
    Posts
    36
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    1

    Default QColor generator?

    Is there something in Qt which would allow me to generate not-so-random colors? By not-so-random I mean, that I would like these colors to be in accustomed order - for example black, red, blue, green, purple etc, to be sure that these colors are distinguishable from each other (at least several first colors). I need to have quite big amount of these, 100 at least. Generating them manually would be a gigantic pain, so maybe there is some kind of intelligent color generator?

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    520
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 77 Times in 75 Posts

    Default Re: QColor generator?

    Hi, do you need each of the hundred colors to be distinguishable from the other 99? Or only from its neighbours? It the latter case you could try to circle around blue, green, red, yellow, blue, green, ... with different saturations. Then each color would have three colors in either direction that look quite different.

    Ginsengelf

  3. #3
    Join Date
    Sep 2015
    Posts
    36
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    1

    Default Re: QColor generator?

    It would be better if all of them were distinguishable. But it's not actually possible over first few dozens of colors.

Similar Threads

  1. Replies: 1
    Last Post: 21st June 2016, 19:05
  2. Report generator
    By mak_user in forum General Programming
    Replies: 6
    Last Post: 13th October 2015, 12:36
  3. Random Generator for Androidx86 in Qt5
    By alexo in forum Newbie
    Replies: 1
    Last Post: 8th September 2014, 07:30
  4. Flowchart generator
    By reversevendingman in forum Newbie
    Replies: 5
    Last Post: 20th March 2013, 00:23
  5. Random No Generator in C/C++
    By ankurjain in forum General Programming
    Replies: 1
    Last Post: 6th July 2006, 12:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.