question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PIXI.Graphics.drawRoundedRect with radius 0 does not correctly render outline in WebGLRenderer

See original GitHub issue

Hi. 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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
robberfreecommented, Nov 23, 2017

@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: 2017-11-23 10 14 59 2017-11-23 10 15 04 do you know why? thanks.

0reactions
bigtimebuddycommented, Apr 12, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found