Current solution (methods SassColour.getBlue, SassColour.getRed,
SassColour.getGreen)
$component = round(abs($this->blue));
return ($component > 255 ? $component % 255 : $component);
i.e. it returns modulo 255 of absolute value of color component. This is not
very obviously and predictable.
If I do #F0F0F0 + #200000 I get smth like #10F0F0 but more expected value
(#FFF0F0) can be retrieved with the following code:
return max(0, min(255, round($this->blue));
http://en.wikipedia.org/wiki/Color_mixing#Additive_Mixing
http://en.wikipedia.org/wiki/Color_theory
Original issue reported on code.google.com by michael....@gmail.com on 20 Oct 2010 at 2:22
Original issue reported on code.google.com by
michael....@gmail.com
on 20 Oct 2010 at 2:22Attachments: