Anmate CC / Create JS Performance
by Whykiki
HTML
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<div id="animation_container" style="background-color:rgba(0, 0, 0, 1.00); width:1920px; height:1440px">
<canvas id="canvas" width="1920" height="1440" style="position: absolute; display: block; background-color:rgba(0, 0, 0, 1.00);"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:1920px; height:1440px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>
JavaScript
(function (cjs, an) {
var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [];
// symbols:
// helper functions:
function mc_symbol_clone() {
var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop));
clone.gotoAndStop(this.currentFrame);
clone.paused = this.paused;
clone.framerate = this.framerate;
return clone;
}
function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
var prototype = cjs.extend(symbol, cjs.MovieClip);
prototype.clone = mc_symbol_clone;
prototype.nominalBounds = nominalBounds;
prototype.frameBounds = frameBounds;
return prototype;
}
(lib.Symbol1 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Ebene_1
this.shape = new cjs.Shape();
this.shape.graphics.f("#00FF33").s().p("AtHNIIAA6PIaPAAIAAaPg");
this.shape.setTransform(84,84);
this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));
}).prototype = getMCSymbolPrototype(lib.Symbol1, new cjs.Rectangle(0,0,168,168), null);
(lib.Tween2 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Ebene_1
this.instance = new lib.Symbol1();
this.instance.parent = this;
this.instance.setTransform(0,0,1,1,0,0,0,84,84);
this.shape = new cjs.Shape();
this.shape.graphics.f().s("#373535").ss(1,1,1).p("AtHtHIaPAAIAAaPI6PAAg");
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape},{t:this.instance}]}).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-85,-85,170,170);
(lib.Tween1 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Ebene_1
this.instance = new lib.Symbol1();
this.instance.parent = this;
this.instance.setTransform(0,0,1,1,0,0,0,84,84);
this.shape = new...