mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-13 06:49:51 -04:00
Use HSL instead of HSV for brightness effect
This commit is contained in:
parent
dcedd0c3cf
commit
03107781ab
3 changed files with 40 additions and 64 deletions
src
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue