Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

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.

share|improve this question
    
either way, this still isn't really a graphic design question. We're not typically known for our high-level math skills. –  DA01 May 11 '11 at 19:14
1  
This was already asked on SO, but I think if we can offer at least methodologies for figuring this out, this can be on-topic. –  Philip Regan May 11 '11 at 20:24
add comment

1 Answer

up vote 5 down vote accepted

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:

share|improve this answer
1  
Note that the SO's solution is from the easyRGB-site -- which turns out to be a great resource for some color math needs in pseudo code! –  koiyu May 12 '11 at 9:20
    
Thanks for help –  F0rc0sigan May 14 '11 at 7:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.