Skip to content

[Bug]: Scripting Gradient rgb is misconfigured #3195

@Alasdairbugs

Description

@Alasdairbugs

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions