Add "tint" to the scene.make.image
, scene.make.sprite
config param (maybe others?)
#5907
micsun-al
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This doesn't seem to tint the image:
This seems to work properly:
... should the top one work?
Inside https://github.com/photonstorm/phaser/blob/v3.51.0/src/gameobjects/image/ImageCreator.js#L12 ...
After
var image = new Image(this.scene, 0, 0, key, frame)
...... maybe add
image.setTint(GetAdvancedValue(config, 'tint', null))
...?Beta Was this translation helpful? Give feedback.
All reactions