ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Colorset with good contrasts?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

982 Posts

Posted - Jun 05 2018 :  16:11:31  Show Profile  Reply
I need to create a list of n distinct colors. When placed in any order, each of these colors should have a good contrast to each neighboring color.

The colors should have the same characteristics such as color saturation, brightness, etc.

Any idea?

xequte

39053 Posts

Posted - Jun 05 2018 :  17:00:34  Show Profile  Reply
Hi Peter

Our palette generation methods are:

https://www.imageen.com/help/GenerateColorLuminancePalette.html
https://www.imageen.com/help/GenerateGradientPalette.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

982 Posts

Posted - Jun 06 2018 :  09:13:22  Show Profile  Reply
Thank you. I have also experimented with my own palette-generating algorithms, for example:

for i := 0 to FlowPanel1.ControlCount - 1 do
    TPanel(FlowPanel1.Controls[i]).Color := Vcl.GraphUtil.ColorHLSToRGB(i * 38, 128 + i * 7, 128 + i * 7);


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: