gerardAlbin

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Thanks, switching it off does the job, but now I can't change the arc width using graphic.lineStyle(x, 0xFF0000, 1, 1, true), it appears as it doesn't matter what x I pass in, it's always thin. EDIT: Fixed it, I was passing the parameters wrong.
  2. Versions below and including 5.0.0-alpha.3: round graphics objects appear smooth and actually round. Versions above 5.0.0-alpha.3:round graphics objects appear like octagons, it gets worse the smaller they are. What could be causing this? https://imgur.com/a/rQfFHGi <!doctype html> <html> <head> <style> body{ margin: 0; } canvas{ display: block; background: blue; } </style> </head> <body> <canvas id="mycanvas"></canvas> <script src="pixi/pixi.js"></script> <script type="text/javascript"> console.log(PIXI.settings); const canvas = document.getElementById('mycanvas'); const app = new PIXI.Application({ view: canvas, width: 800, height: 600, backgroundColor: 0x000000, resolution: 1, autoDensity: true, antialias: true }); const graphic = new PIXI.Graphics(); graphic.x = app.renderer.width / 2; graphic.y = app.renderer.height / 2; app.stage.addChild(graphic); graphic.lineStyle(2, 0xFF0000, 1, 1, true); graphic.arc(0, 0, 10, 0, 2 * Math.PI); app.ticker.add(animate); function animate() { // graphic.rotation += 0.1; } </script> </body> </html>