Welcome! Log In Create A New Profile

Advanced
Re: Really Big Colour Code: 117313504
avatarFebruary 11, 2013 03:27PM
I agree that something like this is probably much better than what I'm doing in LDView. Having said that, I don't think adding (or subtracting) a constant value to the RGB components of the color and then clamping is the best way to do it. It seems that would change the hue noticeably.

For example, suppose that the input color was #FF8040 (kind of tangerine orange). Your algorithm would produce #991A00, which is more of a dark red. Multiplying each component by 0.6 would produce #994D26, which is brown. Generally, "dark orange" means "brown", so I think this is better.

Going the other way (creating a light compliment for a dark color) is a little more work, since you have to pull each component towards 1.0 by 0.6, but it's still fairly simple. In my opinion, the result is a better match of the original color.
SubjectAuthorViewsPosted
Really Big Colour Code: 117313504 Eric Himbeault1008January 11, 2013 08:32AM
Re: Really Big Colour Code: 117313504 Travis Cobbs370January 11, 2013 09:14AM
Re: Really Big Colour Code: 117313504 Travis Cobbs352January 11, 2013 09:17AM
Re: Really Big Colour Code: 117313504 Eric Himbeault363January 11, 2013 01:49PM
Re: Really Big Colour Code: 117313504 Travis Cobbs335January 11, 2013 02:38PM
Re: Really Big Colour Code: 117313504 Allen Smith403January 11, 2013 04:06PM
Re: Really Big Colour Code: 117313504 Travis Cobbs401January 11, 2013 04:49PM
Re: Really Big Colour Code: 117313504 Alex Taylor372January 12, 2013 05:38AM
Re: Really Big Colour Code: 117313504 Michael Heidemann360January 12, 2013 04:05PM
Re: Really Big Colour Code: 117313504 Alex Taylor375January 13, 2013 04:05AM
Re: Really Big Colour Code: 117313504 Michael Heidemann361January 13, 2013 10:35AM
Re: Really Big Colour Code: 117313504 Eric Himbeault334January 14, 2013 08:21AM
Re: Really Big Colour Code: 117313504 Roland Melkert455February 11, 2013 11:13AM
Re: Really Big Colour Code: 117313504 Michael Heidemann372February 11, 2013 02:00PM
Re: Really Big Colour Code: 117313504 Travis Cobbs403February 11, 2013 02:01PM
Re: Really Big Colour Code: 117313504 Allen Smith384February 11, 2013 02:29PM
Re: Really Big Colour Code: 117313504 Travis Cobbs370February 11, 2013 03:27PM
Re: Really Big Colour Code: 117313504 Travis Cobbs377February 11, 2013 03:30PM
Re: Really Big Colour Code: 117313504 Allen Smith392February 11, 2013 04:36PM
Re: Really Big Colour Code: 117313504 Martin James407February 12, 2013 12:51AM
Re: Really Big Colour Code: 117313504 Roland Melkert715February 12, 2013 11:43AM



Sorry, only registered users may post in this forum.

Click here to login