PIXI.Graphics.drawRoundedRect with radius 0 does not correctly render outline in WebGLRenderer
See original GitHub issueHi. Nice library. I think I found a bug.
Issue: Outline of rounded rect with radius 0 is rendered incorrectly for WebGLRenderer when PIXI.Graphics.drawRoundedRect
is called with radius 0. This does not look like an issue for CanvasRenderer.
Expected: Outline of rounded rect with radius 0 should be rendrered like outline of regular rect.
Severity: Low - can work around by calling PIXI.Graphics.drawRect
instead by checking if radius being passed is 0.
Version: 4.5.1
Example: https://jsfiddle.net/1z6qd7s5/7/
Thanks in advance.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
PIXI.Graphics.drawRoundedRect with radius 0 does ... - GitHub
Hi. Nice library. I think I found a bug. Issue: Outline of rounded rect with radius 0 is rendered incorrectly for WebGLRenderer when...
Read more >PIXI.Graphics - PixiJS API Documentation
The Graphics class is primarily used to render primitive shapes such as lines, circles and rectangles to the display, and to color and...
Read more >PIXI.Graphics
The Graphics class is primarily used to render primitive shapes such as lines, circles and rectangles to the display, and to color and...
Read more >PixiJS: not drawing round rectangle correctly - Stack Overflow
How can I draw a correctly rounded rectangle without the pixelated corner? Here is my code: var graphics = new PIXI.Graphics(); graphics.
Read more >pixi.js (v4.3.0) — Pixi.js is a fast lightweight 2D library that works ...
_initContext; WebGLRenderer.render; WebGLRenderer. ... If flag is non-zero, the uppercase form is used; else, the lowercase form is used.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@uzawaj i meet this problem too.i also use
drawRect
as a option.i also meet some strange thing when use linewidth and radius to draw
roundedRect
. like this: do you know why? thanks.Fixed by #6539: https://jsfiddle.net/bigtimebuddy/uztvj9xn/