Additional "Overlay" blending mode for UIGradient

As a Roblox developer, it is currently impossible to achieve the visual styling I want in a UIGradient.

Proposed API:

[GradientBlendMode] UIGradient.BlendMode

GradientBlendMode
0 : Multiply
1 : Overlay

OR

[Number] UIGradient.BlendInfluence

Right now UIGradient only has the Multiply blend mode (or BlendInfluence = 1). This blend mode multiplies input colors to create a new image.
image

Overlay (or BlendInfluence = 0) overlays the gradient on top of the input colors, allowing for more control over the way gradients look in your game.
image

Specifically I want this because I want to use them for transitions, but they’re pretty useless for that unless you’re using a solid black gradient.

16 Likes