Stage rotation according to origin of stage kineticJS
I 'm working on a navigation project.I have a map like this.
http://i.stack.imgur.com/Squ72.jpg
I need to rotate this map according to the green point which is on
[400,300] px on the stage.I tried a lot of things but it did not work.Here
is my rotate function.
function rotateMap(layer, t_angle) {
layer.setOffset(400, 300);
layer.rotateDeg(t_angle);
layer.draw();
layer.move(400, 300);
};
This rotates map only one time.When i tried to use it in a timer event,the
map doesn't appears after first rotation.Is there any efficial way to do
this rotation?
No comments:
Post a Comment