绘制圆 Angular 矩形后, Angular 不是完美的圆 Angular 。 Angular 落是像素化的:
如何绘制没有像素 Angular 的正确圆 Angular 矩形?这是我的代码:
var graphics = new PIXI.Graphics();
graphics.beginFill(0x3e494b);
graphics.lineStyle(4, 0x0, .3);
graphics.drawRoundedRect(
x,
y,
width,
height,
30
);
graphics.endFill();
最佳答案
如果您的项目使用 Pixi Application ,请尝试将抗锯齿选项设置为 true。例如:
const app = new Application({antialias: true});
关于javascript - PixiJS : not drawing round rectangle correctly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54302555/