Famous: Origin and Transform
var Engine = require('famous/core/Engine');
var Surface = require('famous/core/Surface');
var Transform = require('famous/core/Transform');
var StateModifier = require('famous/modifiers/StateModifier');
var mainContext = Engine.createContext();
var surface = new Surface({
size: [200, 200],
properties: {
color: 'white',
backgroundColor: '#FA5C4F'
}
});
var modifier = new StateModifier({
align: [0.5, 0.5],
origin: [0, 0],
transform: Transform.rotateZ(Math.PI/6)
});
mainContext.add(modifier).add(surface);