Rectangle 1 Pixel Showing As Anti-aliased

Looking at the Phaser drawing examples

https://labs.phaser.io/edit.html?src=src/game%20objects/shapes/rectangle.js&v=3.52.0

If you set linewidth to 1, it draws a partially opaque, anti-aliased line. If you set to 2 it draws pixel perfect.

How do you get a 1 pixel width pixel perfect line?

Hi I think the problem is not related with directly 3.52.0. When you change the version to 3.24.1 still same with 3.52.0. Just wanted to notify :slight_smile:

Add { antialiasGL: false } to game config.

Or position the shape on half coordinates.