Jump to content

Anti-Aliased Line Drawing


yahiko
 Share

Recommended Posts

Are you using the WebGL renderer? Have you tried using the Canvas renderer? It's a param to the Game constructor. You should also set smoothed to false on your stage.

 

Carlos is right – antialias is set to true by default. You want "false". Everything you draw is going to end up being a texture, even if it is drawn with lines.

Link to comment
Share on other sites

Thank you for your reply since part of it solved my issue.

 

I tried to set to true or false the constructor parameter antialiasing: nothing changed.

I tried to set to true of false the stage parameter smoothed: nothing changed.

 

Only setting the renderer from AUTO to CANVAS changed something:

 

AUTO  : 692026phaserAntialiasing1.png

CANVAS: 395586phaserAntialiasing2.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...