diff options
author | wout <wout@impinc.co.uk> | 2014-02-01 20:13:05 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-02-01 20:13:05 +0100 |
commit | 11376f6ec53092bd3893a168f25a08983d7aff6c (patch) | |
tree | de6a4725bb791549a3e177ec06b0364e913f5659 /src/color.js | |
parent | a19bbab549b2d65b83751c3ef85295ee02065f42 (diff) | |
download | svg.js-11376f6ec53092bd3893a168f25a08983d7aff6c.tar.gz svg.js-11376f6ec53092bd3893a168f25a08983d7aff6c.zip |
added `morph()` and `at()` methods to `SVG.Number` for unit morphing
Diffstat (limited to 'src/color.js')
-rwxr-xr-x | src/color.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color.js b/src/color.js index d870d5f..e73d7e0 100755 --- a/src/color.js +++ b/src/color.js @@ -74,7 +74,7 @@ SVG.extend(SVG.Color, { /* normalise pos */ pos = pos < 0 ? 0 : pos > 1 ? 1 : pos - /* generate morphed array */ + /* generate morphed color */ return new SVG.Color({ r: ~~(this.r + (this.destination.r - this.r) * pos) , g: ~~(this.g + (this.destination.g - this.g) * pos) |