Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Scripting Gradient rgb is misconfigured #3195

Open
6 tasks done
Alasdairbugs opened this issue Jan 29, 2025 · 1 comment
Open
6 tasks done

[Bug]: Scripting Gradient rgb is misconfigured #3195

Alasdairbugs opened this issue Jan 29, 2025 · 1 comment
Labels
status:needs-confirmation Issue needs to be determined reproducible type:bug
Milestone

Comments

@Alasdairbugs
Copy link
Contributor

SuperTux Version

v0.6.3-1566-ge43838b1d

System Information

Win 11 64bit

Expected Behavior

g1 is the name of my gradient that I am changing colour. Using these scripts, I should expect the gradient to go from blue, to green, to purple.

g1.fade_color2(0, 139, 223, 0.1);
g1.fade_color2(0, 196, 22, 0.1);
g1.fade_color2(182, 1, 250, 0.1);

Actual Behavior

Instead it turns from blue, to the same shade of blue, then to white. I'm unsure as to what exactly is misconfigured. It is important also to mention that the alpha value is completely missing in the scripting reference

Steps To Reproduce Actual Behavior

reproduce with the scripts as above. Please use these rgb values and clipboard them to some tiles so you can see how they are supposed to be normally:

blue rgb(0,139,223)
green rgb(0,196,22)
purple rgb(182,1,250)

Additional Information

Might be related to #3148 but I'm unsure.

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • 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.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) bug.
  • 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.
@Alasdairbugs
Copy link
Contributor Author

Furthermore, dark brown rgb(26,21,0) is yellow, for some reason. red, rgb(253,0,40) also looks a bit pinkish.

@Alasdairbugs Alasdairbugs added this to the 0.7.1 milestone Feb 9, 2025
@Alasdairbugs Alasdairbugs added the status:needs-confirmation Issue needs to be determined reproducible label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-confirmation Issue needs to be determined reproducible type:bug
Projects
None yet
Development

No branches or pull requests

1 participant