Changing Fill Color after element rendered
khanzzirfan opened this issue · comments
Irfan Khan commented
Hi, How to change the SVG fill and stroke after object rendered? tried this way but didn't update any fill color.
svgObject.beginFill(0xf1c40f)
svgObject.endFill();
https://codesandbox.io/s/pixijs-examples-events-hit-test-forked-f9ttqe
Matt Karl commented
This is a limitation of Graphics in Pixi. There's no way to modify the fill color after drawing. You have to redraw the shape. Optionally, you can use tint
, but that may not render what you want.