Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2018 03:00
Show Gist options
  • Save anonymous/2e04099dd514d09da0f3ad0b5d1f02b2 to your computer and use it in GitHub Desktop.
Save anonymous/2e04099dd514d09da0f3ad0b5d1f02b2 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/hamigujefi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
</head>
<style>
#demoCanvas {
border: 1px solid red;
}
</style>
<body>
<canvas id="demoCanvas" width="800" height="600"></canvas>
<script>
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAB3VBMVEX///9ONS48fxFeQTg+JiLeMCYJCgsAAAB8tEL7uhZLMy5VOiw4fA1QNi/1txbiMCYAAApZOjBFKiF/t0RINS4ABQhAghVZOS53tENUMydUOjJGLy/dKh87HSB1rj1ZPTXRy8lDNS5CKiU8ISHdJhrXMSbj3tzu7u7/xhMzGyLaAACBbGboMCXIv7zp6ek4JyJqSB+ZiINOjSFzXFbPmxk5FiCLeHK5rqvQMSf98fBPKh5mS0ItGCNjezaVhYGJZCbhRz/xrqtrSioUFBOwsLDskIz75eRSU1OyMyozLCdfmi1jNS0hGRdpojT2zMrGxsZXYC88PT2Xl5hQUSxxlD15ViVvNCy1hxvpf3qkNCu/MinmZ2FFNiZwcXGVNSyPuD2dcySrnppfcjRlZWZ/NS1LRCiFhYbumZXmbGYjJCUzNDS+uC7iU0xuTgzzfxtLMQn1w8DcuiNvjzx2oz/wqqeyvjHSwCvtXh47JwngriA2Ch7nTiHCig76kxjvmxzmwCMlGAmQv2LDpyHsWB+9ryqGTCmuz4/O4bhcTzR1PSqQZBbibB/bixwbBRC8eSNBPzCYIxfdniKwlh7p89+fSiiCJSqcWyYAABobHSXS5cCnzINqZjSQRSogDQfjeh6zWKzUAAAgAElEQVR4nO19i38a1/Xn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FZvuxdgDkulYvqic4hrQ/sM10Ytv+u0IYM+6eMXCq4RdD25e0ofOwpyEP98+/YwVmhr3nzr1+ij70IF9GJ8KvW1YlpX8ZR8hCceeOQCn68yZiT50SL5fnkie4jut2MWpmQEgCU4AeoaIHoMF6wxC68dG4M1MXfxeiF//ik5f2APkoRfAuzD99szfIRaA9Pj7ZPKQy+/3fM/h0RW7eHnmw3H/0Wjp8Y9/OHP5+8qcA1by4uUr/kPCRHD+K5cvfv9Uy0ErFpr+2YUZ//i4x+MZpFIm4PXxcf/MhZ9Nh344tOtbyWho+vLUhSszM0ArQEsWyNupmZkrF6YuT4eiPzzSDV6xZDQaMlc0mvwBk+3H9eP6cf24/r9b/w+w6WsfoTFKaQAAAABJRU5ErkJggg==";
var bitmap = new createjs.Bitmap(img);
bitmap.x = 200;
bitmap.y = 280;
bitmap.regX = 225/2;
bitmap.regY = 225/2;
var container = new createjs.Container();
container.addChild(bitmap);
var stage = new createjs.Stage("demoCanvas");
stage.addChild(container);
createjs.MotionGuidePlugin.install(createjs.Tween);
createjs.Ticker.setFPS(100);
createjs.Ticker.addEventListener("tick", stage);
var i = 0;
createjs.Tween.get(bitmap, {loop: 0})
.to({rotation: i+=360*5}, 2000, createjs.Ease.getPowIn(2.2))
.to({rotation: i+=360*5}, 5000, createjs.Ease.getPowOut(2.2))
var line = new createjs.Shape();
container.addChild(line);
line.graphics.setStrokeStyle(1).beginStroke("#000000");
line.graphics.moveTo(190, 150).lineTo(210, 150).lineTo(200, 170).lineTo(190, 150);
line.graphics.endStroke();
</script>
<!--
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment