[Solved] Change Color of a PNG Icon

Is there a known way to change the color of an icon which is based on single colored PNG pic?

        var icon = new IconComponent("Fonts/StickUpDown.png");
        icon.setIconScale(0.35f);
        label = new Label("");
        label.setIcon(icon);
        label.setFont(fontMedium);
        label.setLocalScale(0.02f);

I couldn’t find anything so far, would be cool if it is possible.

IconComponent.setColor() :wink:

2 Likes

Perhaps we’ve misinterpreted the question somehow?

Oops, I see what I did wrong, I placed the setColor on the label instead on the icon coff coff.

This works, just it is slightly darker than the label text, is there a reason for that?

Would depend on the PNG, I guess.

It’s just using Unshaed.j3md for both.

1 Like