...

View Full Version : Canvas rotation problem in Opera



Jazzo
06-21-2010, 11:21 PM
I created a drawEllipse function for a Canvas library I'm making, and it works fine in Safari, Firefox, and Chrome, but in Opera, the rotation doesn't work. The function is as follows:


ctx.drawEllipse = function (fill, x, y, rad1, rad2, r) {
ctx.save();
if (r) {
ctx.translate(x, y);
ctx.rotate(r);
ctx.translate(-x, -y);
}
ctx.scale(rad1, rad2);
ctx.beginPath();
ctx.arc()(x / rad1, y / rad2, 1);
ctx[fill]();
ctx.restore();
};


When I add rotation to the ellipse, in Opera, it doesn't rotate and just gets bigger. I have no idea why. Can anyone suggest anything?

Thanks,
Julian

kaljak
05-24-2012, 04:00 PM
I have the same problem at the moment,
does anyone know any workarounds?

Best regards,
kaljak



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum