garik
garik

Reputation: 5756

How to change color tone

I have read the article Introduction to Color Theory. Using that information, I have to change color's tone (I have to add grey color to current one) programmatically (C#, .NET). How can I do it?

Tones - adding gray to a pure hue

Upvotes: 0

Views: 747

Answers (1)

Hans Passant
Hans Passant

Reputation: 941465

"Adding gray" is fairly unclear. Start mspaint.exe and click on Edit Colors. Click the rainbow rectangle to pick a color. Keep on eye on the Hue/Sat/Lum boxes. Drag the slider on the far right up and down and note how the Luminance changes. You make it darker by sliding it down, perhaps that's what you mean by "adding gray". Or maybe you mean tinkering with the Saturation. Try it for yourself.

You transform from the RGB color space to the HSL color space and back with these formulas.

Upvotes: 1

Related Questions