Comparing version 0.0.9 to 0.0.10
@@ -20,3 +20,3 @@ import * as utils from './utils' | ||
return () => { | ||
return (decay=0.9) => { | ||
args.canvasElementHelper.width = args.videoElement.offsetWidth; | ||
@@ -81,3 +81,3 @@ args.canvasElementHelper.height = args.videoElement.offsetHeight; | ||
// smooth using momentum | ||
curMoment = ((1-0.9)*energyScore) + (0.9*curMoment) | ||
curMoment = ((1-decay)*energyScore) + (decay*curMoment) | ||
return curMoment | ||
@@ -84,0 +84,0 @@ |
{ | ||
"name": "emellib", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.crejo.fun/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
480499