Commit a24c32fc authored by Hixie's avatar Hixie

Fix spaces in lerp.dart to match style better.

parent 183ea104
...@@ -26,10 +26,11 @@ Color lerpColor(Color a, Color b, double t) { ...@@ -26,10 +26,11 @@ Color lerpColor(Color a, Color b, double t) {
if (b == null) if (b == null)
return _scaleAlpha(a, 1.0 - t); return _scaleAlpha(a, 1.0 - t);
return new Color.fromARGB( return new Color.fromARGB(
lerpNum(a.alpha, b.alpha, t).toInt(), lerpNum(a.alpha, b.alpha, t).toInt(),
lerpNum(a.red, b.red, t).toInt(), lerpNum(a.red, b.red, t).toInt(),
lerpNum(a.green, b.green, t).toInt(), lerpNum(a.green, b.green, t).toInt(),
lerpNum(a.blue, b.blue, t).toInt()); lerpNum(a.blue, b.blue, t).toInt()
);
} }
Offset lerpOffset(Offset a, Offset b, double t) { Offset lerpOffset(Offset a, Offset b, double t) {
...@@ -55,5 +56,6 @@ Rect lerpRect(Rect a, Rect b, double t) { ...@@ -55,5 +56,6 @@ Rect lerpRect(Rect a, Rect b, double t) {
lerpNum(a.left, b.left, t), lerpNum(a.left, b.left, t),
lerpNum(a.top, b.top, t), lerpNum(a.top, b.top, t),
lerpNum(a.right, b.right, t), lerpNum(a.right, b.right, t),
lerpNum(a.bottom, b.bottom, t)); lerpNum(a.bottom, b.bottom, t)
);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment