yahiko Posted April 28, 2015 Share Posted April 28, 2015 Hi, I would like to draw lines, but without aliasing.Is there a mean to do that in Phaser? Link to comment Share on other sites More sharing options...
Carlos Posted April 29, 2015 Share Posted April 29, 2015 The game constructor has an antialias parameter:http://phaser.io/docs/2.3.0/Phaser.Game.html Link to comment Share on other sites More sharing options...
yahiko Posted April 29, 2015 Author Share Posted April 29, 2015 Thanks for your reply.However, I think this is not the parameter I'm looking for since this one you mention is already set to true by default. Furthermore, my request is about line drawing, not texture: https://courses.engr.illinois.edu/ece390/archive/archive-f2000/mp/mp4/anti.html Link to comment Share on other sites More sharing options...
drhayes Posted April 29, 2015 Share Posted April 29, 2015 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 More sharing options...
yahiko Posted April 29, 2015 Author Share Posted April 29, 2015 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 : CANVAS: Link to comment Share on other sites More sharing options...
Recommended Posts