Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
PeterPanino
Posted - Jun 05 2018 : 16:11:31 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?
2 L A T E S T R E P L I E S (Newest First)
PeterPanino
Posted - Jun 06 2018 : 09:13:22 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);