supertux
supertux copied to clipboard
tint_fade(t, r, g, b, a) is misconfigured
SuperTux Version
v0.6.3-1507-gc2e6b766d
System Information
win 11 64 bit
Expected Behavior
as per documentation tint_fade follows t, rgba
Actual Behavior
this is not the case, instead:
- the variable for time also controls blue
- the variable for blue also controls red
so its t+b, r, g, r+b, a
Steps To Reproduce Actual Behavior
- get a tilemap, place some lightmap white tiles, for ease' sake.
- get a lever, on switch is
.tint_fade(0, 1, 1, 1, 1); - make the off switch something else, but you will see that the first variable definitely controls at least TIME, because if you do 5, 0, 1, 1, 1 then it slowly changes colour
- and if you do 0, 1, 1, 1, 1 it becomes yellow, which means absence of blue. so it controls blue and time
repeat for the other mistake, doing 1, 1, 1, 0, 1 makes it go green. now green is the absence of two colours, red and blue. so the fourth variable also controls two things.
Additional Information
No response
Guidelines For Reporting Issues
- [X] I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
- [X] I have verified this isn't an issue that's already been reported.
- [X] I have verified this isn't a discussion, or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
- [X] I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
- [X] In this report, I have only included details about one (1) bug.
- [X] If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.