Fudley 1 Posted July 10 Are there functions in Delphi to return complementary or triadic colors from a Talphacolor? I'm not even concerned about the alpha, so functions for Tcolor would work. As always, thanks in advance! Share this post Link to post
Der schöne Günther 310 Posted July 10 Wouldn't it be sufficient to convert a RGB color to HSL? There is System.UIConsts.RGBtoHSL(..) Share this post Link to post
Fudley 1 Posted July 10 Yes that's the first part. But that just gives you the same color in hsl. I need to be able to then find the complementary and triadic colors of this color. Share this post Link to post
Der schöne Günther 310 Posted July 10 (edited) "Finding" the other colours is just adding 180° (complementary) or 120° (triads) on the hue value of your HSL colour. Source: https://de.slideshare.net/slideshow/basic-color-theory-for-presentation-design-part-ii/53370835#44 Edited July 10 by Der schöne Günther Share this post Link to post
Fudley 1 Posted July 10 Thanks for this! My issue was some confusion with the various functions expecting colors in the 0..1 range and I was using 0..360. All sorted now, but I'm going to go read that reference material. 6 hours ago, Der schöne Günther said: "Finding" the other colours is just adding 180° (complementary) or 120° (triads) on the hue value of your HSL colour. Source: https://de.slideshare.net/slideshow/basic-color-theory-for-presentation-design-part-ii/53370835#44 Share this post Link to post
Rollo62 520 Posted July 11 Maybe you could vote for an extension of @Jim McKeeth nice ColorPicker here. 1 Share this post Link to post
Jim McKeeth 84 Posted July 12 My pallete library does complementary & triadic already. Still looking at expanding it. Share this post Link to post