Jump to content
Fudley

Colors, complementary, triadic

Recommended Posts

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

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

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.

 

image.thumb.png.fa3a48c86a30dea8889561d1f151b59b.png

Source: https://de.slideshare.net/slideshow/basic-color-theory-for-presentation-design-part-ii/53370835#44

 

Share this post


Link to post

My pallete library does complementary & triadic already. Still looking at expanding it.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×