【问题标题】:Is there a way to draw a ring through Pixi.js?有没有办法通过 Pixi.js 画一个环?
【发布时间】:2020-06-28 18:06:45
【问题描述】:

我想使用 Pixi.js 绘制一个中心为空心的圆。

我用面具和过滤器试过了,但我做不到。

有没有办法像我发的图片那样画出来。

【问题讨论】:

    标签: javascript pixi.js


    【解决方案1】:

    试试这个可能对你有帮助

    var graphics = new PIXI.Graphics()
    graphics.lineStyle(/*border width*/10,/*border color*/ 0xFFBD01, 1);
    graphics.drawCircle(200, 200, 50);
    graphics.endFill();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-18
      • 1970-01-01
      • 1970-01-01
      • 2020-06-19
      • 2021-07-29
      相关资源
      最近更新 更多