Use HSL instead of HSV for brightness effect

This commit is contained in:
Christopher Willis-Ford 2016-05-25 14:21:40 -07:00
parent dcedd0c3cf
commit 03107781ab
3 changed files with 40 additions and 64 deletions

View file

@ -78,7 +78,7 @@ module.exports = Drawable;
*/
Drawable._effectConverter = {
color: function(x) {
return (360 * x / 200) % 360;
return (x / 200) % 1;
},
fisheye: function(x) {
return Math.max(0, (x + 100) / 100);