提交 034a3060 编写于 作者: I Ian Hickson

Merge pull request #284 from Hixie/buttons

Fix the lerp the RIGHT way.
......@@ -22,9 +22,9 @@ Color lerpColor(Color a, Color b, double t) {
if (a == null && b == null)
return null;
if (a == null)
return _scaleAlpha(a, t);
return _scaleAlpha(b, t);
if (b == null)
return _scaleAlpha(b, 1.0 - t);
return _scaleAlpha(a, 1.0 - t);
return new Color.fromARGB(
lerpNum(a.alpha, b.alpha, t).toInt(),
lerpNum(a.red, b.red, t).toInt(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册