Fix scale-color().

This commit is contained in:
Natalie Weizenbaum 2016-10-19 14:43:52 -07:00
parent 1e1864770e
commit 1f4596ff6a

View File

@ -373,9 +373,9 @@ void defineCoreFunctions(Environment environment) {
}
return color.changeRgb(
red: scaleValue(color.red, red, 255),
green: scaleValue(color.green, green, 255),
blue: scaleValue(color.blue, blue, 255),
red: scaleValue(color.red, red, 255).round(),
green: scaleValue(color.green, green, 255).round(),
blue: scaleValue(color.blue, blue, 255).round(),
alpha: scaleValue(color.alpha, alpha, 1));
} else if (hasHsl) {
return color.changeHsl(