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.

tint property not working on Graphics

See original GitHub issue

Using pixijs 3 the following would work:

var g = new PIXI.Graphics();
g.beginFill(0x999999);
g.drawRect(0, 0, 100, 100);
g.endFill();
g.tint = 0xFF0000;
stage.addChild(g);

On 4.0.0 it doesn’t seem to be working. Tested on Chrome 52 and Firefox 48

JSFiddle

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
GoodBoyDigitalcommented, Aug 30, 2016

fixed in dev whoop! 👍

0reactions
lock[bot]commented, Feb 25, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tintedImageProvider does not provide tint color in Graphic ...
To solve this, I've created a plain rectangle image of required complication size, set its background color to black and alpha to 11%....
Read more >
tint property in PIXI.Graphics - HTML5 Game Devs Forum
So we have here only one shape and only one color but tint is not working var renderer = PIXI.autoDetectRenderer(800, 600, { antialias:...
Read more >
[Enhancement] Add Tint to Image · Issue #4761 - GitHub
Summary I want to be able to provide a tint color to be applied to any Image and especially when setting an Icon...
Read more >
Solved: Constant red tint on screen (yes, night light is off..)
Solved: My screen display keeps tinting itself red, as if it were in night mode, despite the night light being off. I can...
Read more >
Tint and Shade Functions - CSS-Tricks
Both lighten and darken functions manipulate the lightness of a color in the HSL space by adding or subtracting lightness to it.
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