console
var graphics = new createjs.Graphics().beginFill('#000').drawRect(0, 0, 50, 50);
var shape = new createjs.Shape(graphics);
var canvas = document.querySelector('#canvas');
var stage = new createjs.Stage(canvas)
var count = 0;
shape.x = 50;
shape.y = 50;
shape.regX = 50;
shape.regY = 50;
createjs.Ticker.addEventListener('tick', e => {
shape.rotation = 1*count++;
stage.update();
})
createjs.Ticker.timingMode = createjs.Ticker.RAF;
stage.addChild(shape);
stage.update();
<canvas id="canvas"></canvas>
canvas {
background: #fff;
}