Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder Jazzo's Avatar
    Join Date
    Apr 2008
    Location
    New York City
    Posts
    164
    Thanks
    20
    Thanked 2 Times in 2 Posts

    Canvas rotation problem in Opera

    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:
    Code:
      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
    ~Julian
    14 y/o web developer, drummer, and Bridge player

  • #2
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have the same problem at the moment,
    does anyone know any workarounds?

    Best regards,
    kaljak


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •