From 1f4596ff6aaef0f117487d310de519cda1a1c5be Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 19 Oct 2016 14:43:52 -0700 Subject: [PATCH] Fix scale-color(). --- lib/src/functions.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/functions.dart b/lib/src/functions.dart index 42279ab2..8dfbd65e 100644 --- a/lib/src/functions.dart +++ b/lib/src/functions.dart @@ -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(