Pixi.js: Line around Graphics object not on all sides when drawRect is used

Created on 15 Feb 2019  ·  3Comments  ·  Source: pixijs/pixi.js

Expected Behavior

Draws line around every side of the object.

Current Behavior

Line only drawn on three sides.
capture

Possible Solution

?

Steps to Reproduce

var testGraphic = new PIXI.Graphics();
testGraphic.beginFill(red).lineStyle(4, green);
testGraphic.drawRect(150, 150, 600, 200);
tool.stage.addChild(testGraphic);

Environment

  • pixi.js version: v5.0.0-rc
  • Browser & Version: Chrome 72.0.3626.81 (Official Build) (64-bit)
  • OS & Version: Windows 10
  • Running Example: -
🕷 Bug

All 3 comments

Confirmed, its differs in v4 and v5. endFill() doesn't help.

https://www.pixiplayground.com/#/edit/K45xTRXqfExRiZ6VUmx61

I suspected that something like that will appear, we rewrote Graphics class and I didn't test it enough.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

distinctdan picture distinctdan  ·  3Comments

lucap86 picture lucap86  ·  3Comments

madroneropaulo picture madroneropaulo  ·  3Comments

finscn picture finscn  ·  3Comments

SebastienFPRousseau picture SebastienFPRousseau  ·  3Comments