Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

p5.tween

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p5.tween - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

LICENSE

10

dist/p5.tween.js

@@ -18,3 +18,9 @@ var p5;

easeOutQuint: (t) => 1 + (--t) * t * t * t * t,
easeInOutQuint: (t) => t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t
easeInOutQuint: (t) => t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t,
easeInElastic: (t) => (.04 - .04 / t) * Math.sin(25 * t) + 1,
easeOutElastic: (t) => .04 * t / (--t) * Math.sin(25 * t),
easeInOutElastic: (t) => (t -= .5) < 0 ? (.02 + .01 / t) * Math.sin(50 * t) : (.02 - .01 / t) * Math.sin(50 * t) + 1,
easeInSin: (t) => 1 + Math.sin(Math.PI / 2 * t - Math.PI / 2),
easeOutSin: (t) => Math.sin(Math.PI / 2 * t),
easeInOutSin: (t) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2
};

@@ -113,3 +119,3 @@ })(tween = p5.tween || (p5.tween = {}));

for (let action of motion.actions) {
if (action.key && action.target) {
if (action.key && !isNaN(action.target)) {
const progress = Math.min(motion.leftTime / motion.duration, 1.0);

@@ -116,0 +122,0 @@ this.obj[action.key] = this.interpolation(this.motionStart[action.key], action.target, progress, motion.easing);

2

dist/p5.tween.min.js

@@ -1,1 +0,1 @@

var p5;!function(t){!function(t){t.EASINGS={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}}(t.tween||(t.tween={}))}(p5||(p5={})),function(t){!function(t){t.Tween=class{constructor(t){this.motions=[],this.keyChanges=[],this.active=!1,this.isLoop=!1,this.currentMotionIndex=0,this.obj=t}resetToStart(){for(let t in this.start)this.obj[t]=this.start[t];this.motionStart=this.createStartObject(this.start)}createStartObject(t){const e={};return this.keyChanges.forEach(n=>e[n]=t[n]),e}addToKeyChangeList(t){this.keyChanges.includes(t)||this.keyChanges.push(t)}interpolation(e,n,i,s="linear"){return(s in t.EASINGS?t.EASINGS[s]:t.EASINGS.linear)(i)*(n-e)+e}addMotion(t,e,n,i="linear"){return this.addToKeyChangeList(t),this.motions.push({actions:[{key:t,target:e}],duration:n,leftTime:0,easing:i}),this}addMotions(t,e,n="linear"){return t.flatMap(t=>t.key).forEach(t=>this.addToKeyChangeList(t)),this.motions.push({actions:t,duration:e,leftTime:0,easing:n}),this}resetMotions(){this.motions=[]}startLoop(){return this.isLoop=!0,this.startTween(),this}startTween(){return this.start=this.createStartObject(this.obj),this.motionStart=this.createStartObject(this.obj),this.currentMotionIndex=0,this.active=!0,this}update(t){if(!this.active)return;const e=this.motions[this.currentMotionIndex];if(e.leftTime>=e.duration&&(e.leftTime=0,this.motionStart=this.createStartObject(this.obj),this.currentMotionIndex+=1,this.currentMotionIndex>=this.motions.length&&(this.isLoop?(this.resetToStart(),this.currentMotionIndex=0):this.active=!1)),e.leftTime+=t,e.actions)for(let t of e.actions)if(t.key&&t.target){const n=Math.min(e.leftTime/e.duration,1);this.obj[t.key]=this.interpolation(this.motionStart[t.key],t.target,n,e.easing)}}}}(t.tween||(t.tween={}))}(p5||(p5={})),function(t){!function(t){t.GeometricObjectTween=class extends t.Tween{addMotionTo(t,e,n="linear"){let i=[];t.x&&i.push({key:"x",target:t.x}),t.y&&i.push({key:"y",target:t.y}),t.width&&i.push({key:"width",target:t.width}),t.height&&i.push({key:"height",target:t.height}),t.w&&i.push({key:"w",target:t.w}),t.h&&i.push({key:"h",target:t.h}),t.angle&&i.push({key:"angle",target:t.angle}),t.rotation&&i.push({key:"rotation",target:t.rotation}),super.addMotions(i,e,n)}}}(t.tween||(t.tween={}))}(p5||(p5={})),function(t){!function(e){e.manager=new class{constructor(){this.tweens=[]}getTween(t){return this.tweens.find(e=>e.name===t).tween}addTween(t,n){const i=n||"tween"+this.tweens.length,s=new e.Tween(t);return this.tweens.push({name:i,tween:s}),s}update(t){for(let e of this.tweens)e.tween.update(t)}},t.prototype.registerMethod("pre",()=>e.manager.update(window.deltaTime))}(t.tween||(t.tween={}))}(p5||(p5={}));
var p5;!function(t){!function(t){t.EASINGS={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t,easeInElastic:t=>(.04-.04/t)*Math.sin(25*t)+1,easeOutElastic:t=>.04*t/--t*Math.sin(25*t),easeInOutElastic:t=>(t-=.5)<0?(.02+.01/t)*Math.sin(50*t):(.02-.01/t)*Math.sin(50*t)+1,easeInSin:t=>1+Math.sin(Math.PI/2*t-Math.PI/2),easeOutSin:t=>Math.sin(Math.PI/2*t),easeInOutSin:t=>(1+Math.sin(Math.PI*t-Math.PI/2))/2}}(t.tween||(t.tween={}))}(p5||(p5={})),function(t){!function(t){t.Tween=class{constructor(t){this.motions=[],this.keyChanges=[],this.active=!1,this.isLoop=!1,this.currentMotionIndex=0,this.obj=t}resetToStart(){for(let t in this.start)this.obj[t]=this.start[t];this.motionStart=this.createStartObject(this.start)}createStartObject(t){const e={};return this.keyChanges.forEach(n=>e[n]=t[n]),e}addToKeyChangeList(t){this.keyChanges.includes(t)||this.keyChanges.push(t)}interpolation(e,n,i,s="linear"){return(s in t.EASINGS?t.EASINGS[s]:t.EASINGS.linear)(i)*(n-e)+e}addMotion(t,e,n,i="linear"){return this.addToKeyChangeList(t),this.motions.push({actions:[{key:t,target:e}],duration:n,leftTime:0,easing:i}),this}addMotions(t,e,n="linear"){return t.flatMap(t=>t.key).forEach(t=>this.addToKeyChangeList(t)),this.motions.push({actions:t,duration:e,leftTime:0,easing:n}),this}resetMotions(){this.motions=[]}startLoop(){return this.isLoop=!0,this.startTween(),this}startTween(){return this.start=this.createStartObject(this.obj),this.motionStart=this.createStartObject(this.obj),this.currentMotionIndex=0,this.active=!0,this}update(t){if(!this.active)return;const e=this.motions[this.currentMotionIndex];if(e.leftTime>=e.duration&&(e.leftTime=0,this.motionStart=this.createStartObject(this.obj),this.currentMotionIndex+=1,this.currentMotionIndex>=this.motions.length&&(this.isLoop?(this.resetToStart(),this.currentMotionIndex=0):this.active=!1)),e.leftTime+=t,e.actions)for(let t of e.actions)if(t.key&&!isNaN(t.target)){const n=Math.min(e.leftTime/e.duration,1);this.obj[t.key]=this.interpolation(this.motionStart[t.key],t.target,n,e.easing)}}}}(t.tween||(t.tween={}))}(p5||(p5={})),function(t){!function(t){t.GeometricObjectTween=class extends t.Tween{addMotionTo(t,e,n="linear"){let i=[];t.x&&i.push({key:"x",target:t.x}),t.y&&i.push({key:"y",target:t.y}),t.width&&i.push({key:"width",target:t.width}),t.height&&i.push({key:"height",target:t.height}),t.w&&i.push({key:"w",target:t.w}),t.h&&i.push({key:"h",target:t.h}),t.angle&&i.push({key:"angle",target:t.angle}),t.rotation&&i.push({key:"rotation",target:t.rotation}),super.addMotions(i,e,n)}}}(t.tween||(t.tween={}))}(p5||(p5={})),function(t){!function(e){e.manager=new class{constructor(){this.tweens=[]}getTween(t){return this.tweens.find(e=>e.name===t).tween}addTween(t,n){const i=n||"tween"+this.tweens.length,s=new e.Tween(t);return this.tweens.push({name:i,tween:s}),s}update(t){for(let e of this.tweens)e.tween.update(t)}},t.prototype.registerMethod("pre",()=>e.manager.update(window.deltaTime))}(t.tween||(t.tween={}))}(p5||(p5={}));

@@ -1,1 +0,1 @@

{"kinds":{"1":"Module","2":"Namespace","32":"Variable","64":"Function","128":"Class","512":"Constructor","1024":"Property","2048":"Method","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"Easings\"","url":"modules/_easings_.html","classes":"tsd-kind-module"},{"id":1,"kind":2,"name":"p5","url":"modules/_easings_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"Easings\""},{"id":2,"kind":2,"name":"tween","url":"modules/_easings_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"Easings\".p5"},{"id":3,"kind":2097152,"name":"EASINGS","url":"modules/_easings_.p5.tween.html#easings","classes":"tsd-kind-object-literal tsd-parent-kind-namespace","parent":"\"Easings\".p5.tween"},{"id":4,"kind":64,"name":"linear","url":"modules/_easings_.p5.tween.html#easings.linear","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":5,"kind":64,"name":"easeInQuad","url":"modules/_easings_.p5.tween.html#easings.easeinquad","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":6,"kind":64,"name":"easeOutQuad","url":"modules/_easings_.p5.tween.html#easings.easeoutquad","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":7,"kind":64,"name":"easeInOutQuad","url":"modules/_easings_.p5.tween.html#easings.easeinoutquad","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":8,"kind":64,"name":"easeInCubic","url":"modules/_easings_.p5.tween.html#easings.easeincubic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":9,"kind":64,"name":"easeOutCubic","url":"modules/_easings_.p5.tween.html#easings.easeoutcubic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":10,"kind":64,"name":"easeInOutCubic","url":"modules/_easings_.p5.tween.html#easings.easeinoutcubic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":11,"kind":64,"name":"easeInQuart","url":"modules/_easings_.p5.tween.html#easings.easeinquart","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":12,"kind":64,"name":"easeOutQuart","url":"modules/_easings_.p5.tween.html#easings.easeoutquart","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":13,"kind":64,"name":"easeInOutQuart","url":"modules/_easings_.p5.tween.html#easings.easeinoutquart","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":14,"kind":64,"name":"easeInQuint","url":"modules/_easings_.p5.tween.html#easings.easeinquint","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":15,"kind":64,"name":"easeOutQuint","url":"modules/_easings_.p5.tween.html#easings.easeoutquint","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":16,"kind":64,"name":"easeInOutQuint","url":"modules/_easings_.p5.tween.html#easings.easeinoutquint","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":17,"kind":1,"name":"\"GeometricObjectTween\"","url":"modules/_geometricobjecttween_.html","classes":"tsd-kind-module"},{"id":18,"kind":2,"name":"p5","url":"modules/_geometricobjecttween_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"GeometricObjectTween\""},{"id":19,"kind":2,"name":"tween","url":"modules/_geometricobjecttween_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"GeometricObjectTween\".p5"},{"id":20,"kind":128,"name":"GeometricObjectTween","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"\"GeometricObjectTween\".p5.tween"},{"id":21,"kind":2048,"name":"addMotionTo","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#addmotionto","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":22,"kind":512,"name":"constructor","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":23,"kind":2048,"name":"addMotion","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#addmotion","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":24,"kind":2048,"name":"addMotions","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#addmotions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":25,"kind":2048,"name":"resetMotions","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#resetmotions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":26,"kind":2048,"name":"startLoop","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#startloop","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":27,"kind":2048,"name":"startTween","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#starttween","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":28,"kind":2048,"name":"update","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#update","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":29,"kind":1,"name":"\"Tween\"","url":"modules/_tween_.html","classes":"tsd-kind-module"},{"id":30,"kind":2,"name":"p5","url":"modules/_tween_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"Tween\""},{"id":31,"kind":2,"name":"tween","url":"modules/_tween_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"Tween\".p5"},{"id":32,"kind":128,"name":"Tween","url":"classes/_tween_.p5.tween.tween.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"\"Tween\".p5.tween"},{"id":33,"kind":1024,"name":"obj","url":"classes/_tween_.p5.tween.tween.html#obj","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":34,"kind":1024,"name":"start","url":"classes/_tween_.p5.tween.tween.html#start","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":35,"kind":1024,"name":"motionStart","url":"classes/_tween_.p5.tween.tween.html#motionstart","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":36,"kind":1024,"name":"motions","url":"classes/_tween_.p5.tween.tween.html#motions","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":37,"kind":1024,"name":"keyChanges","url":"classes/_tween_.p5.tween.tween.html#keychanges","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":38,"kind":1024,"name":"active","url":"classes/_tween_.p5.tween.tween.html#active","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":39,"kind":1024,"name":"isLoop","url":"classes/_tween_.p5.tween.tween.html#isloop","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":40,"kind":1024,"name":"currentMotionIndex","url":"classes/_tween_.p5.tween.tween.html#currentmotionindex","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":41,"kind":512,"name":"constructor","url":"classes/_tween_.p5.tween.tween.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":42,"kind":2048,"name":"resetToStart","url":"classes/_tween_.p5.tween.tween.html#resettostart","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":43,"kind":2048,"name":"createStartObject","url":"classes/_tween_.p5.tween.tween.html#createstartobject","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":44,"kind":2048,"name":"addToKeyChangeList","url":"classes/_tween_.p5.tween.tween.html#addtokeychangelist","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":45,"kind":2048,"name":"interpolation","url":"classes/_tween_.p5.tween.tween.html#interpolation","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":46,"kind":2048,"name":"addMotion","url":"classes/_tween_.p5.tween.tween.html#addmotion","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":47,"kind":2048,"name":"addMotions","url":"classes/_tween_.p5.tween.tween.html#addmotions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":48,"kind":2048,"name":"resetMotions","url":"classes/_tween_.p5.tween.tween.html#resetmotions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":49,"kind":2048,"name":"startLoop","url":"classes/_tween_.p5.tween.tween.html#startloop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":50,"kind":2048,"name":"startTween","url":"classes/_tween_.p5.tween.tween.html#starttween","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":51,"kind":2048,"name":"update","url":"classes/_tween_.p5.tween.tween.html#update","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":52,"kind":1,"name":"\"TweenManager\"","url":"modules/_tweenmanager_.html","classes":"tsd-kind-module"},{"id":53,"kind":2,"name":"p5","url":"modules/_tweenmanager_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"TweenManager\""},{"id":54,"kind":2,"name":"tween","url":"modules/_tweenmanager_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"TweenManager\".p5"},{"id":55,"kind":128,"name":"TweenManager","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html","classes":"tsd-kind-class tsd-parent-kind-namespace tsd-is-not-exported","parent":"\"TweenManager\".p5.tween"},{"id":56,"kind":1024,"name":"tweens","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#tweens","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":57,"kind":2048,"name":"getTween","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#gettween","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":58,"kind":2048,"name":"addTween","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#addtween","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":59,"kind":2048,"name":"update","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#update","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":60,"kind":32,"name":"manager","url":"modules/_tweenmanager_.p5.tween.html#manager","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"\"TweenManager\".p5.tween"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,28.744]],["parent/0",[]],["name/1",[1,26.231]],["parent/1",[0,2.794]],["name/2",[2,21.122]],["parent/2",[3,3.618]],["name/3",[0,28.744]],["parent/3",[4,3.618]],["name/4",[5,37.217]],["parent/4",[6,1.482]],["name/5",[7,37.217]],["parent/5",[6,1.482]],["name/6",[8,37.217]],["parent/6",[6,1.482]],["name/7",[9,37.217]],["parent/7",[6,1.482]],["name/8",[10,37.217]],["parent/8",[6,1.482]],["name/9",[11,37.217]],["parent/9",[6,1.482]],["name/10",[12,37.217]],["parent/10",[6,1.482]],["name/11",[13,37.217]],["parent/11",[6,1.482]],["name/12",[14,37.217]],["parent/12",[6,1.482]],["name/13",[15,37.217]],["parent/13",[6,1.482]],["name/14",[16,37.217]],["parent/14",[6,1.482]],["name/15",[17,37.217]],["parent/15",[6,1.482]],["name/16",[18,37.217]],["parent/16",[6,1.482]],["name/17",[19,28.744]],["parent/17",[]],["name/18",[1,26.231]],["parent/18",[19,2.794]],["name/19",[2,21.122]],["parent/19",[20,3.618]],["name/20",[19,28.744]],["parent/20",[21,3.618]],["name/21",[22,37.217]],["parent/21",[23,1.932]],["name/22",[24,32.108]],["parent/22",[23,1.932]],["name/23",[25,32.108]],["parent/23",[23,1.932]],["name/24",[26,32.108]],["parent/24",[23,1.932]],["name/25",[27,32.108]],["parent/25",[23,1.932]],["name/26",[28,32.108]],["parent/26",[23,1.932]],["name/27",[29,32.108]],["parent/27",[23,1.932]],["name/28",[30,28.744]],["parent/28",[23,1.932]],["name/29",[2,21.122]],["parent/29",[]],["name/30",[1,26.231]],["parent/30",[2,2.053]],["name/31",[2,21.122]],["parent/31",[31,3.618]],["name/32",[2,21.122]],["parent/32",[32,3.618]],["name/33",[33,37.217]],["parent/33",[34,1.124]],["name/34",[35,37.217]],["parent/34",[34,1.124]],["name/35",[36,37.217]],["parent/35",[34,1.124]],["name/36",[37,37.217]],["parent/36",[34,1.124]],["name/37",[38,37.217]],["parent/37",[34,1.124]],["name/38",[39,37.217]],["parent/38",[34,1.124]],["name/39",[40,37.217]],["parent/39",[34,1.124]],["name/40",[41,37.217]],["parent/40",[34,1.124]],["name/41",[24,32.108]],["parent/41",[34,1.124]],["name/42",[42,37.217]],["parent/42",[34,1.124]],["name/43",[43,37.217]],["parent/43",[34,1.124]],["name/44",[44,37.217]],["parent/44",[34,1.124]],["name/45",[45,37.217]],["parent/45",[34,1.124]],["name/46",[25,32.108]],["parent/46",[34,1.124]],["name/47",[26,32.108]],["parent/47",[34,1.124]],["name/48",[27,32.108]],["parent/48",[34,1.124]],["name/49",[28,32.108]],["parent/49",[34,1.124]],["name/50",[29,32.108]],["parent/50",[34,1.124]],["name/51",[30,28.744]],["parent/51",[34,1.124]],["name/52",[46,28.744]],["parent/52",[]],["name/53",[1,26.231]],["parent/53",[46,2.794]],["name/54",[2,21.122]],["parent/54",[47,3.618]],["name/55",[46,28.744]],["parent/55",[48,3.121]],["name/56",[49,37.217]],["parent/56",[50,2.55]],["name/57",[51,37.217]],["parent/57",[50,2.55]],["name/58",[52,37.217]],["parent/58",[50,2.55]],["name/59",[30,28.744]],["parent/59",[50,2.55]],["name/60",[53,37.217]],["parent/60",[48,3.121]]],"invertedIndex":[["active",{"_index":39,"name":{"38":{}},"parent":{}}],["addmotion",{"_index":25,"name":{"23":{},"46":{}},"parent":{}}],["addmotions",{"_index":26,"name":{"24":{},"47":{}},"parent":{}}],["addmotionto",{"_index":22,"name":{"21":{}},"parent":{}}],["addtokeychangelist",{"_index":44,"name":{"44":{}},"parent":{}}],["addtween",{"_index":52,"name":{"58":{}},"parent":{}}],["constructor",{"_index":24,"name":{"22":{},"41":{}},"parent":{}}],["createstartobject",{"_index":43,"name":{"43":{}},"parent":{}}],["currentmotionindex",{"_index":41,"name":{"40":{}},"parent":{}}],["easeincubic",{"_index":10,"name":{"8":{}},"parent":{}}],["easeinoutcubic",{"_index":12,"name":{"10":{}},"parent":{}}],["easeinoutquad",{"_index":9,"name":{"7":{}},"parent":{}}],["easeinoutquart",{"_index":15,"name":{"13":{}},"parent":{}}],["easeinoutquint",{"_index":18,"name":{"16":{}},"parent":{}}],["easeinquad",{"_index":7,"name":{"5":{}},"parent":{}}],["easeinquart",{"_index":13,"name":{"11":{}},"parent":{}}],["easeinquint",{"_index":16,"name":{"14":{}},"parent":{}}],["easeoutcubic",{"_index":11,"name":{"9":{}},"parent":{}}],["easeoutquad",{"_index":8,"name":{"6":{}},"parent":{}}],["easeoutquart",{"_index":14,"name":{"12":{}},"parent":{}}],["easeoutquint",{"_index":17,"name":{"15":{}},"parent":{}}],["easings",{"_index":0,"name":{"0":{},"3":{}},"parent":{"1":{}}}],["easings\".p5",{"_index":3,"name":{},"parent":{"2":{}}}],["easings\".p5.tween",{"_index":4,"name":{},"parent":{"3":{}}}],["easings\".p5.tween.easings",{"_index":6,"name":{},"parent":{"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{}}}],["geometricobjecttween",{"_index":19,"name":{"17":{},"20":{}},"parent":{"18":{}}}],["geometricobjecttween\".p5",{"_index":20,"name":{},"parent":{"19":{}}}],["geometricobjecttween\".p5.tween",{"_index":21,"name":{},"parent":{"20":{}}}],["geometricobjecttween\".p5.tween.geometricobjecttween",{"_index":23,"name":{},"parent":{"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{}}}],["gettween",{"_index":51,"name":{"57":{}},"parent":{}}],["interpolation",{"_index":45,"name":{"45":{}},"parent":{}}],["isloop",{"_index":40,"name":{"39":{}},"parent":{}}],["keychanges",{"_index":38,"name":{"37":{}},"parent":{}}],["linear",{"_index":5,"name":{"4":{}},"parent":{}}],["manager",{"_index":53,"name":{"60":{}},"parent":{}}],["motions",{"_index":37,"name":{"36":{}},"parent":{}}],["motionstart",{"_index":36,"name":{"35":{}},"parent":{}}],["obj",{"_index":33,"name":{"33":{}},"parent":{}}],["p5",{"_index":1,"name":{"1":{},"18":{},"30":{},"53":{}},"parent":{}}],["resetmotions",{"_index":27,"name":{"25":{},"48":{}},"parent":{}}],["resettostart",{"_index":42,"name":{"42":{}},"parent":{}}],["start",{"_index":35,"name":{"34":{}},"parent":{}}],["startloop",{"_index":28,"name":{"26":{},"49":{}},"parent":{}}],["starttween",{"_index":29,"name":{"27":{},"50":{}},"parent":{}}],["tween",{"_index":2,"name":{"2":{},"19":{},"29":{},"31":{},"32":{},"54":{}},"parent":{"30":{}}}],["tween\".p5",{"_index":31,"name":{},"parent":{"31":{}}}],["tween\".p5.tween",{"_index":32,"name":{},"parent":{"32":{}}}],["tween\".p5.tween.tween",{"_index":34,"name":{},"parent":{"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{}}}],["tweenmanager",{"_index":46,"name":{"52":{},"55":{}},"parent":{"53":{}}}],["tweenmanager\".p5",{"_index":47,"name":{},"parent":{"54":{}}}],["tweenmanager\".p5.tween",{"_index":48,"name":{},"parent":{"55":{},"60":{}}}],["tweenmanager\".p5.tween.tweenmanager",{"_index":50,"name":{},"parent":{"56":{},"57":{},"58":{},"59":{}}}],["tweens",{"_index":49,"name":{"56":{}},"parent":{}}],["update",{"_index":30,"name":{"28":{},"51":{},"59":{}},"parent":{}}]],"pipeline":[]}}
{"kinds":{"1":"Module","2":"Namespace","32":"Variable","64":"Function","128":"Class","512":"Constructor","1024":"Property","2048":"Method","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"Easings\"","url":"modules/_easings_.html","classes":"tsd-kind-module"},{"id":1,"kind":2,"name":"p5","url":"modules/_easings_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"Easings\""},{"id":2,"kind":2,"name":"tween","url":"modules/_easings_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"Easings\".p5"},{"id":3,"kind":2097152,"name":"EASINGS","url":"modules/_easings_.p5.tween.html#easings","classes":"tsd-kind-object-literal tsd-parent-kind-namespace","parent":"\"Easings\".p5.tween"},{"id":4,"kind":64,"name":"linear","url":"modules/_easings_.p5.tween.html#easings.linear","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":5,"kind":64,"name":"easeInQuad","url":"modules/_easings_.p5.tween.html#easings.easeinquad","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":6,"kind":64,"name":"easeOutQuad","url":"modules/_easings_.p5.tween.html#easings.easeoutquad","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":7,"kind":64,"name":"easeInOutQuad","url":"modules/_easings_.p5.tween.html#easings.easeinoutquad","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":8,"kind":64,"name":"easeInCubic","url":"modules/_easings_.p5.tween.html#easings.easeincubic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":9,"kind":64,"name":"easeOutCubic","url":"modules/_easings_.p5.tween.html#easings.easeoutcubic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":10,"kind":64,"name":"easeInOutCubic","url":"modules/_easings_.p5.tween.html#easings.easeinoutcubic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":11,"kind":64,"name":"easeInQuart","url":"modules/_easings_.p5.tween.html#easings.easeinquart","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":12,"kind":64,"name":"easeOutQuart","url":"modules/_easings_.p5.tween.html#easings.easeoutquart","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":13,"kind":64,"name":"easeInOutQuart","url":"modules/_easings_.p5.tween.html#easings.easeinoutquart","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":14,"kind":64,"name":"easeInQuint","url":"modules/_easings_.p5.tween.html#easings.easeinquint","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":15,"kind":64,"name":"easeOutQuint","url":"modules/_easings_.p5.tween.html#easings.easeoutquint","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":16,"kind":64,"name":"easeInOutQuint","url":"modules/_easings_.p5.tween.html#easings.easeinoutquint","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":17,"kind":64,"name":"easeInElastic","url":"modules/_easings_.p5.tween.html#easings.easeinelastic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":18,"kind":64,"name":"easeOutElastic","url":"modules/_easings_.p5.tween.html#easings.easeoutelastic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":19,"kind":64,"name":"easeInOutElastic","url":"modules/_easings_.p5.tween.html#easings.easeinoutelastic","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":20,"kind":64,"name":"easeInSin","url":"modules/_easings_.p5.tween.html#easings.easeinsin","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":21,"kind":64,"name":"easeOutSin","url":"modules/_easings_.p5.tween.html#easings.easeoutsin","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":22,"kind":64,"name":"easeInOutSin","url":"modules/_easings_.p5.tween.html#easings.easeinoutsin","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"\"Easings\".p5.tween.EASINGS"},{"id":23,"kind":1,"name":"\"GeometricObjectTween\"","url":"modules/_geometricobjecttween_.html","classes":"tsd-kind-module"},{"id":24,"kind":2,"name":"p5","url":"modules/_geometricobjecttween_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"GeometricObjectTween\""},{"id":25,"kind":2,"name":"tween","url":"modules/_geometricobjecttween_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"GeometricObjectTween\".p5"},{"id":26,"kind":128,"name":"GeometricObjectTween","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"\"GeometricObjectTween\".p5.tween"},{"id":27,"kind":2048,"name":"addMotionTo","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#addmotionto","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":28,"kind":512,"name":"constructor","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":29,"kind":2048,"name":"addMotion","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#addmotion","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":30,"kind":2048,"name":"addMotions","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#addmotions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":31,"kind":2048,"name":"resetMotions","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#resetmotions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":32,"kind":2048,"name":"startLoop","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#startloop","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":33,"kind":2048,"name":"startTween","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#starttween","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":34,"kind":2048,"name":"update","url":"classes/_geometricobjecttween_.p5.tween.geometricobjecttween.html#update","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"GeometricObjectTween\".p5.tween.GeometricObjectTween"},{"id":35,"kind":1,"name":"\"Tween\"","url":"modules/_tween_.html","classes":"tsd-kind-module"},{"id":36,"kind":2,"name":"p5","url":"modules/_tween_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"Tween\""},{"id":37,"kind":2,"name":"tween","url":"modules/_tween_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"Tween\".p5"},{"id":38,"kind":128,"name":"Tween","url":"classes/_tween_.p5.tween.tween.html","classes":"tsd-kind-class tsd-parent-kind-namespace","parent":"\"Tween\".p5.tween"},{"id":39,"kind":1024,"name":"obj","url":"classes/_tween_.p5.tween.tween.html#obj","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":40,"kind":1024,"name":"start","url":"classes/_tween_.p5.tween.tween.html#start","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":41,"kind":1024,"name":"motionStart","url":"classes/_tween_.p5.tween.tween.html#motionstart","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":42,"kind":1024,"name":"motions","url":"classes/_tween_.p5.tween.tween.html#motions","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":43,"kind":1024,"name":"keyChanges","url":"classes/_tween_.p5.tween.tween.html#keychanges","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":44,"kind":1024,"name":"active","url":"classes/_tween_.p5.tween.tween.html#active","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":45,"kind":1024,"name":"isLoop","url":"classes/_tween_.p5.tween.tween.html#isloop","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":46,"kind":1024,"name":"currentMotionIndex","url":"classes/_tween_.p5.tween.tween.html#currentmotionindex","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":47,"kind":512,"name":"constructor","url":"classes/_tween_.p5.tween.tween.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":48,"kind":2048,"name":"resetToStart","url":"classes/_tween_.p5.tween.tween.html#resettostart","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":49,"kind":2048,"name":"createStartObject","url":"classes/_tween_.p5.tween.tween.html#createstartobject","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":50,"kind":2048,"name":"addToKeyChangeList","url":"classes/_tween_.p5.tween.tween.html#addtokeychangelist","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":51,"kind":2048,"name":"interpolation","url":"classes/_tween_.p5.tween.tween.html#interpolation","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"Tween\".p5.tween.Tween"},{"id":52,"kind":2048,"name":"addMotion","url":"classes/_tween_.p5.tween.tween.html#addmotion","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":53,"kind":2048,"name":"addMotions","url":"classes/_tween_.p5.tween.tween.html#addmotions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":54,"kind":2048,"name":"resetMotions","url":"classes/_tween_.p5.tween.tween.html#resetmotions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":55,"kind":2048,"name":"startLoop","url":"classes/_tween_.p5.tween.tween.html#startloop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":56,"kind":2048,"name":"startTween","url":"classes/_tween_.p5.tween.tween.html#starttween","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":57,"kind":2048,"name":"update","url":"classes/_tween_.p5.tween.tween.html#update","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Tween\".p5.tween.Tween"},{"id":58,"kind":1,"name":"\"TweenManager\"","url":"modules/_tweenmanager_.html","classes":"tsd-kind-module"},{"id":59,"kind":2,"name":"p5","url":"modules/_tweenmanager_.p5.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"\"TweenManager\""},{"id":60,"kind":2,"name":"tween","url":"modules/_tweenmanager_.p5.tween.html","classes":"tsd-kind-namespace tsd-parent-kind-namespace","parent":"\"TweenManager\".p5"},{"id":61,"kind":128,"name":"TweenManager","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html","classes":"tsd-kind-class tsd-parent-kind-namespace tsd-is-not-exported","parent":"\"TweenManager\".p5.tween"},{"id":62,"kind":1024,"name":"tweens","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#tweens","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":63,"kind":2048,"name":"getTween","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#gettween","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":64,"kind":2048,"name":"addTween","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#addtween","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":65,"kind":2048,"name":"update","url":"classes/_tweenmanager_.p5.tween.tweenmanager.html#update","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-not-exported","parent":"\"TweenManager\".p5.tween.TweenManager"},{"id":66,"kind":32,"name":"manager","url":"modules/_tweenmanager_.p5.tween.html#manager","classes":"tsd-kind-variable tsd-parent-kind-namespace","parent":"\"TweenManager\".p5.tween"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,29.667]],["parent/0",[]],["name/1",[1,27.154]],["parent/1",[0,2.892]],["name/2",[2,22.046]],["parent/2",[3,3.717]],["name/3",[0,29.667]],["parent/3",[4,3.717]],["name/4",[5,38.14]],["parent/4",[6,1.217]],["name/5",[7,38.14]],["parent/5",[6,1.217]],["name/6",[8,38.14]],["parent/6",[6,1.217]],["name/7",[9,38.14]],["parent/7",[6,1.217]],["name/8",[10,38.14]],["parent/8",[6,1.217]],["name/9",[11,38.14]],["parent/9",[6,1.217]],["name/10",[12,38.14]],["parent/10",[6,1.217]],["name/11",[13,38.14]],["parent/11",[6,1.217]],["name/12",[14,38.14]],["parent/12",[6,1.217]],["name/13",[15,38.14]],["parent/13",[6,1.217]],["name/14",[16,38.14]],["parent/14",[6,1.217]],["name/15",[17,38.14]],["parent/15",[6,1.217]],["name/16",[18,38.14]],["parent/16",[6,1.217]],["name/17",[19,38.14]],["parent/17",[6,1.217]],["name/18",[20,38.14]],["parent/18",[6,1.217]],["name/19",[21,38.14]],["parent/19",[6,1.217]],["name/20",[22,38.14]],["parent/20",[6,1.217]],["name/21",[23,38.14]],["parent/21",[6,1.217]],["name/22",[24,38.14]],["parent/22",[6,1.217]],["name/23",[25,29.667]],["parent/23",[]],["name/24",[1,27.154]],["parent/24",[25,2.892]],["name/25",[2,22.046]],["parent/25",[26,3.717]],["name/26",[25,29.667]],["parent/26",[27,3.717]],["name/27",[28,38.14]],["parent/27",[29,2.027]],["name/28",[30,33.032]],["parent/28",[29,2.027]],["name/29",[31,33.032]],["parent/29",[29,2.027]],["name/30",[32,33.032]],["parent/30",[29,2.027]],["name/31",[33,33.032]],["parent/31",[29,2.027]],["name/32",[34,33.032]],["parent/32",[29,2.027]],["name/33",[35,33.032]],["parent/33",[29,2.027]],["name/34",[36,29.667]],["parent/34",[29,2.027]],["name/35",[2,22.046]],["parent/35",[]],["name/36",[1,27.154]],["parent/36",[2,2.149]],["name/37",[2,22.046]],["parent/37",[37,3.717]],["name/38",[2,22.046]],["parent/38",[38,3.717]],["name/39",[39,38.14]],["parent/39",[40,1.217]],["name/40",[41,38.14]],["parent/40",[40,1.217]],["name/41",[42,38.14]],["parent/41",[40,1.217]],["name/42",[43,38.14]],["parent/42",[40,1.217]],["name/43",[44,38.14]],["parent/43",[40,1.217]],["name/44",[45,38.14]],["parent/44",[40,1.217]],["name/45",[46,38.14]],["parent/45",[40,1.217]],["name/46",[47,38.14]],["parent/46",[40,1.217]],["name/47",[30,33.032]],["parent/47",[40,1.217]],["name/48",[48,38.14]],["parent/48",[40,1.217]],["name/49",[49,38.14]],["parent/49",[40,1.217]],["name/50",[50,38.14]],["parent/50",[40,1.217]],["name/51",[51,38.14]],["parent/51",[40,1.217]],["name/52",[31,33.032]],["parent/52",[40,1.217]],["name/53",[32,33.032]],["parent/53",[40,1.217]],["name/54",[33,33.032]],["parent/54",[40,1.217]],["name/55",[34,33.032]],["parent/55",[40,1.217]],["name/56",[35,33.032]],["parent/56",[40,1.217]],["name/57",[36,29.667]],["parent/57",[40,1.217]],["name/58",[52,29.667]],["parent/58",[]],["name/59",[1,27.154]],["parent/59",[52,2.892]],["name/60",[2,22.046]],["parent/60",[53,3.717]],["name/61",[52,29.667]],["parent/61",[54,3.22]],["name/62",[55,38.14]],["parent/62",[56,2.647]],["name/63",[57,38.14]],["parent/63",[56,2.647]],["name/64",[58,38.14]],["parent/64",[56,2.647]],["name/65",[36,29.667]],["parent/65",[56,2.647]],["name/66",[59,38.14]],["parent/66",[54,3.22]]],"invertedIndex":[["active",{"_index":45,"name":{"44":{}},"parent":{}}],["addmotion",{"_index":31,"name":{"29":{},"52":{}},"parent":{}}],["addmotions",{"_index":32,"name":{"30":{},"53":{}},"parent":{}}],["addmotionto",{"_index":28,"name":{"27":{}},"parent":{}}],["addtokeychangelist",{"_index":50,"name":{"50":{}},"parent":{}}],["addtween",{"_index":58,"name":{"64":{}},"parent":{}}],["constructor",{"_index":30,"name":{"28":{},"47":{}},"parent":{}}],["createstartobject",{"_index":49,"name":{"49":{}},"parent":{}}],["currentmotionindex",{"_index":47,"name":{"46":{}},"parent":{}}],["easeincubic",{"_index":10,"name":{"8":{}},"parent":{}}],["easeinelastic",{"_index":19,"name":{"17":{}},"parent":{}}],["easeinoutcubic",{"_index":12,"name":{"10":{}},"parent":{}}],["easeinoutelastic",{"_index":21,"name":{"19":{}},"parent":{}}],["easeinoutquad",{"_index":9,"name":{"7":{}},"parent":{}}],["easeinoutquart",{"_index":15,"name":{"13":{}},"parent":{}}],["easeinoutquint",{"_index":18,"name":{"16":{}},"parent":{}}],["easeinoutsin",{"_index":24,"name":{"22":{}},"parent":{}}],["easeinquad",{"_index":7,"name":{"5":{}},"parent":{}}],["easeinquart",{"_index":13,"name":{"11":{}},"parent":{}}],["easeinquint",{"_index":16,"name":{"14":{}},"parent":{}}],["easeinsin",{"_index":22,"name":{"20":{}},"parent":{}}],["easeoutcubic",{"_index":11,"name":{"9":{}},"parent":{}}],["easeoutelastic",{"_index":20,"name":{"18":{}},"parent":{}}],["easeoutquad",{"_index":8,"name":{"6":{}},"parent":{}}],["easeoutquart",{"_index":14,"name":{"12":{}},"parent":{}}],["easeoutquint",{"_index":17,"name":{"15":{}},"parent":{}}],["easeoutsin",{"_index":23,"name":{"21":{}},"parent":{}}],["easings",{"_index":0,"name":{"0":{},"3":{}},"parent":{"1":{}}}],["easings\".p5",{"_index":3,"name":{},"parent":{"2":{}}}],["easings\".p5.tween",{"_index":4,"name":{},"parent":{"3":{}}}],["easings\".p5.tween.easings",{"_index":6,"name":{},"parent":{"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{}}}],["geometricobjecttween",{"_index":25,"name":{"23":{},"26":{}},"parent":{"24":{}}}],["geometricobjecttween\".p5",{"_index":26,"name":{},"parent":{"25":{}}}],["geometricobjecttween\".p5.tween",{"_index":27,"name":{},"parent":{"26":{}}}],["geometricobjecttween\".p5.tween.geometricobjecttween",{"_index":29,"name":{},"parent":{"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{}}}],["gettween",{"_index":57,"name":{"63":{}},"parent":{}}],["interpolation",{"_index":51,"name":{"51":{}},"parent":{}}],["isloop",{"_index":46,"name":{"45":{}},"parent":{}}],["keychanges",{"_index":44,"name":{"43":{}},"parent":{}}],["linear",{"_index":5,"name":{"4":{}},"parent":{}}],["manager",{"_index":59,"name":{"66":{}},"parent":{}}],["motions",{"_index":43,"name":{"42":{}},"parent":{}}],["motionstart",{"_index":42,"name":{"41":{}},"parent":{}}],["obj",{"_index":39,"name":{"39":{}},"parent":{}}],["p5",{"_index":1,"name":{"1":{},"24":{},"36":{},"59":{}},"parent":{}}],["resetmotions",{"_index":33,"name":{"31":{},"54":{}},"parent":{}}],["resettostart",{"_index":48,"name":{"48":{}},"parent":{}}],["start",{"_index":41,"name":{"40":{}},"parent":{}}],["startloop",{"_index":34,"name":{"32":{},"55":{}},"parent":{}}],["starttween",{"_index":35,"name":{"33":{},"56":{}},"parent":{}}],["tween",{"_index":2,"name":{"2":{},"25":{},"35":{},"37":{},"38":{},"60":{}},"parent":{"36":{}}}],["tween\".p5",{"_index":37,"name":{},"parent":{"37":{}}}],["tween\".p5.tween",{"_index":38,"name":{},"parent":{"38":{}}}],["tween\".p5.tween.tween",{"_index":40,"name":{},"parent":{"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{}}}],["tweenmanager",{"_index":52,"name":{"58":{},"61":{}},"parent":{"59":{}}}],["tweenmanager\".p5",{"_index":53,"name":{},"parent":{"60":{}}}],["tweenmanager\".p5.tween",{"_index":54,"name":{},"parent":{"61":{},"66":{}}}],["tweenmanager\".p5.tween.tweenmanager",{"_index":56,"name":{},"parent":{"62":{},"63":{},"64":{},"65":{}}}],["tweens",{"_index":55,"name":{"62":{}},"parent":{}}],["update",{"_index":36,"name":{"34":{},"57":{},"65":{}},"parent":{}}]],"pipeline":[]}}
{
"name": "p5.tween",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple library to use tweens in p5.js",

@@ -35,2 +35,2 @@ "main": "dist/p5.tween.js",

"dependencies": {}
}
}
# p5.tween
> With p5.tween you can create easily animations as tweens
[![GitHub license](https://img.shields.io/github/license/Milchreis/p5.tween.svg)](https://github.com/Milchreis/p5.tween/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/Milchreis/p5.tween.svg)](https://GitHub.com/Milchreis/p5.tween/releases/)
[![Package size](http://img.badgesize.io/https://unpkg.com/p5.tween/dist/p5.tween.min.js?compression=gzip&amp;label=size)](https://unpkg.com/p5.tween/dist/p5.tween.min.js)
[![npm](https://img.shields.io/npm/dt/p5.tween)](https://www.npmjs.com/package/p5.tween)
## Usage
> With p5.tween you can create easily animations as tween in a few keyframes
[![logo](https://raw.githubusercontent.com/Milchreis/p5.tween/master/p5.tween.gif)](https://editor.p5js.org/Milchreis/sketches/Ypr3RYWfL)
## πŸš€ Usage
1. Add p5.tween.min.js to your sketch **after p5.js**
```html
<script src="p5.min.js"></script>
<script src="https://github.com/Milchreis/p5.tween/raw/master/dist/p5.tween.min.js"></script>
<script src="https://unpkg.com/p5.tween@1.0.0/dist/p5.tween.min.js"></script>
```

@@ -29,5 +36,7 @@ 2. Add a tween to your sketch

## Examples
## πŸ‘©β€πŸ”¬ Examples
All examples are saved in the p5.tween collection: https://editor.p5js.org/Milchreis/collections/oHxcCR17k
* [Animated Clock](https://editor.p5js.org/Milchreis/present/euDDMbdjP) ([Code](https://editor.p5js.org/Milchreis/sketches/euDDMbdjP))
### Create a tween with step by step motions

@@ -44,3 +53,4 @@ ```js

```
[Example-Code](https://editor.p5js.org/Milchreis/present/u1IL1Tqzm)
- [Demo](https://editor.p5js.org/Milchreis/present/u1IL1Tqzm)
- [Code](https://editor.p5js.org/Milchreis/sketches/u1IL1Tqzm)

@@ -64,5 +74,6 @@ ### Create a tween with simultanious motions

```
[Example-Code](https://editor.p5js.org/Milchreis/present/VZVfZiFvL)
- [Demo](https://editor.p5js.org/Milchreis/present/VZVfZiFvL)
- [Code](https://editor.p5js.org/Milchreis/sketches/VZVfZiFvL)
## API
## πŸ“– API
* [API-Doc](https://milchreis.github.io/p5.tween/docs)

@@ -81,7 +92,8 @@ * [TweenManager methods](https://milchreis.github.io/p5.tween/docs/classes/_tweenmanager_.p5.tween.tweenmanager.html)

// Adds a motion for the 'key' of 'yourObject' (means yourObject.key)
// to the target value in the given time
// to the target value in the given time milli seconds
tween.addMotion('key', targetValue, timeInMillis)
// Adds multiple motions to the tween, which will be played in the same time
tween.addMotions([{ key, target }])
// Adds multiple motions to the tween,
// which will be played in the same time
tween.addMotions([{ key, target }], timeInMillis)

@@ -116,1 +128,13 @@ // Removes all motions from tween

* easeInOutQuint: acceleration until halfway, then deceleration
* easeInElastic: elastic bounce effect at the beginning
* easeOutElastic: elastic bounce effect at the end
* easeInOutElastic: elastic bounce effect at the beginning and end
* easeInSin: accelerating sinus
* easeOutSin: decelerating sinus
* easeInOutSin: acceleration until halfway, then deceleration
## 🍻 Contributing
If there's a missing feature you'd like to see on p5.tween, feel free to write it and submit a pull request. Something broke? Please try to fix it! Also feel free to submit issues, bug reports and requests for future features.
## πŸ“œ Licensing
The **p5.tween** library is licensed under the MIT License. You can find a copy of the MIT License on this repository.

@@ -5,28 +5,37 @@ namespace p5.tween {

// no easing, no acceleration
linear: (t:number) => t,
linear: (t: number) => t,
// accelerating from zero velocity
easeInQuad: (t:number) => t * t,
easeInQuad: (t: number) => t * t,
// decelerating to zero velocity
easeOutQuad: (t:number) => t * (2 - t),
easeOutQuad: (t: number) => t * (2 - t),
// acceleration until halfway, then deceleration
easeInOutQuad: (t:number) => t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t,
easeInOutQuad: (t: number) => t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t,
// accelerating from zero velocity
easeInCubic: (t:number) => t * t * t,
easeInCubic: (t: number) => t * t * t,
// decelerating to zero velocity
easeOutCubic: (t:number) => (--t) * t * t + 1,
easeOutCubic: (t: number) => (--t) * t * t + 1,
// acceleration until halfway, then deceleration
easeInOutCubic: (t:number) => t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1,
easeInOutCubic: (t: number) => t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1,
// accelerating from zero velocity
easeInQuart: (t:number) => t * t * t * t,
easeInQuart: (t: number) => t * t * t * t,
// decelerating to zero velocity
easeOutQuart: (t:number) => 1 - (--t) * t * t * t,
easeOutQuart: (t: number) => 1 - (--t) * t * t * t,
// acceleration until halfway, then deceleration
easeInOutQuart: (t:number) => t < .5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t,
easeInOutQuart: (t: number) => t < .5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t,
// accelerating from zero velocity
easeInQuint: (t:number) => t * t * t * t * t,
easeInQuint: (t: number) => t * t * t * t * t,
// decelerating to zero velocity
easeOutQuint: (t:number) => 1 + (--t) * t * t * t * t,
easeOutQuint: (t: number) => 1 + (--t) * t * t * t * t,
// acceleration until halfway, then deceleration
easeInOutQuint: (t:number) => t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t
easeInOutQuint: (t: number) => t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t,
// elastic bounce effect at the beginning
easeInElastic: (t: number) => (.04 - .04 / t) * Math.sin(25 * t) + 1 ,
// elastic bounce effect at the end
easeOutElastic: (t: number) => .04 * t / (--t) * Math.sin(25 * t),
// elastic bounce effect at the beginning and end
easeInOutElastic: (t: number) => (t -= .5) < 0 ? (.02 + .01 / t) * Math.sin(50 * t) : (.02 - .01 / t) * Math.sin(50 * t) + 1,
easeInSin: (t: number) => 1 + Math.sin(Math.PI / 2 * t - Math.PI / 2) ,
easeOutSin: (t: number) => Math.sin(Math.PI / 2 * t),
easeInOutSin: (t: number) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2
}
}

@@ -135,3 +135,3 @@ namespace p5.tween {

for (let action of motion.actions) {
if (action.key && action.target) {
if (action.key && !isNaN(action.target)) {
const progress = Math.min(motion.leftTime / motion.duration, 1.0)

@@ -138,0 +138,0 @@ this.obj[action.key] = this.interpolation(

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc