While continuing my experiments with Pixi JS, I've bumped into the maths folder classes (Circle, Ellipse, RoundedRectangle, etc.). From the provided example, I see that they can be used for some testing.
// test if a point is inside a circle
const isPointInCircle = new Circle(0, 0, 10).contains(0, 0); // true
However, the documentation for Ellipse says that the Ellipse object is used to help draw graphics…. Upon further searching, I see that for the simple shapes, the Graphics class is used. But I cannot figure out whether it's possible to use the classes from the maths folder for drawing the objects.
Question: Is it possible to use those classes for drawing the shapes?
本文标签:
版权声明:本文标题:pixi.js - Is it Possible to Use Pixi JS maths Classes (Circle, Ellipse, RoundedRectangle, etc.) to Draw Shapes? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.roclinux.cn/p/1743879316a2495465.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论