Skip to content

the first value of background color is alpha not red#62

Open
lycanea wants to merge 1 commit into
FiguraMC:mainfrom
lycanea:patch-1
Open

the first value of background color is alpha not red#62
lycanea wants to merge 1 commit into
FiguraMC:mainfrom
lycanea:patch-1

Conversation

@lycanea

@lycanea lycanea commented Jun 21, 2025

Copy link
Copy Markdown

major gamebreaking issue please fix thx :3

@ammmyd

ammmyd commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

besides EntityNameplateCustomization, setBlockOutlineColor in Renderer is also affected
other functions that use color+transparency (TextTask, SpriteTask, Particle, Texture) use RGBA

Actual behaviors:

Nameplate: setBackgroundColor(a, r, g, b) - A is first value
Renderer: setBlockOutlineColor(a, r, g, b) - ditto
TextTask: setBackgroundColor(r, g, b, a) - works as intended
SpriteTask: setColor(r, g, b, a) - ditto
Particle: setColor(r, g, b, a) - ditto
Texture: setPixel(x, y, r, g, b, a), fill(x, y, w, h, r, g, b, a) - ditto, both

(also tested with Vector4)
just something to note for the wiki or the mod itself (0.1.6)

@ammmyd

ammmyd commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Also noticed in setPixel and fill in Texture. i havent tested them though hold on

@penguinencounter

penguinencounter commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

i might be misremembering but this might be a game-version-specific thing too?

[edit] yeah it looks like fill is wonky in 1.21.3+
setPixel should always be correct, though

@ammmyd

ammmyd commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

setPixel and fill work as shown in docs. will update the list accordingly

i might be misremembering but this might be a game-version-specific thing too?

not sure about that... i only tested it in 0.1.6, fabric 1.21.4. could be the same thing in neoforge or other game versions tho
Edit: a thread on Discord got the issue on 1.20.2, sooooo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants