Mobile app version of vmapp.org
Login or Join
Lee3735518

: Color harmonies math:triada, complement, analogous, monochromatic I need help in color math. I have one main color and i want to know how i can calculate other colors of chosen harmony. I need

@Lee3735518

Posted in: #Color #ColorTheory

I need help in color math. I have one main color and i want to know how i can calculate other colors of chosen harmony. I need such color harmonies: triada, complement, analogous, monochromatic. Any help is appreciated. Thanks, Dima.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lee3735518

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen635

This may still be better suited to SO, but we can answer it here.

To do the whole thing in code, you have to break down the different steps. The basic process is to be able to calculate a specific hue at any point on the color wheel. Your harmonies will be at specific offsets from your base point. So if you can find your point on the wheel, and calculate the color of an arbitrary point, you'll have your answer.

Creating the color-wheel should be pretty straightforward. Here are some other helpful links:


StackOverflow post with pseudo code on how to convert your RGB value to HSL
Positions of common harmonies on the color wheel

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme