KubeJS

KubeJS

61M Downloads

Painter does not handle half-transparent pixels

XavBX opened this issue ยท 0 comments

commented

Minecraft Version

1.20.1

KubeJS Version

2001.6.3-build.52

Rhino Version

2001.2.2-build.6

Architectury Version

9.1.12

Forge/Fabric Version

forge 47.1.47

Describe your issue

With Painter, the rectangle tool does not apply transparency correctly. Either the pixel is 100% transparent, OR the pixel is not transparent at all. It doesn't take the intermediate values - like half transparent.

I try :

  • With a PNG I made myself and then with a PNG from Minecraft. Both didn't work. So the problem isn't with the way I create my PNGs ;
  • Changing the reference color, but that doesn't make any difference either. Worse than that, this color replaces all the colors in the PNG ;

Minecraft manages to handle half-transparent pixels just fine. So is it a bug in the way you paint textures? Or is there a trick I don't understand?

Here, my code :
armorHud: { type: 'rectangle', texture: 'kubejs:textures/gui/armor_hud.png', x: 0, y: '($screenH / 2) - 36', w: 48, h: 71, draw: 'ingame' },

Thank you for taking the time to look into this problem and reply to me. I really appreciate KubeJS and all the work you do.

Crash report/logs

No response