I've looked at the examples:
http://pixijs.io/examples/#/basics/graphics.js
const app = new PIXI.Application(10, 10), {
antialias: true,
backgroundColor: 0xffffff,
});
const graphics = new PIXI.Graphics(true); // <- native lines http://pixijs.download/dev/docs/PIXI.Graphics.html#Graphics
graphics.lineStyle(1, 0xffffff, 1);
graphics.moveTo(0, 0);
graphics.lineTo(10, 10);
graphics.endFill();
app.stage.addChild(graphics);
This creates a 2px wide line. I'm wondering If I need to create a graphics with the TRIANGLE_STRIP instead and set the four corners of the line instead. Surely there must be an easy way of fixing this?