From ed0337c0b9f923d0fc3594916824549a43960043 Mon Sep 17 00:00:00 2001 From: Hendrik Brucker Date: Mon, 8 Nov 2021 19:11:36 +0100 Subject: Several Gradient improvements --- doc/classes/Gradient.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/Gradient.xml b/doc/classes/Gradient.xml index 93cef07b79..baba71b453 100644 --- a/doc/classes/Gradient.xml +++ b/doc/classes/Gradient.xml @@ -51,6 +51,12 @@ Removes the color at the index [code]point[/code]. + + + + Reverses/mirrors the gradient. + + @@ -72,8 +78,22 @@ Gradient's colors returned as a [PackedColorArray]. + + Defines how the colors between points of the gradient are interpolated. See [enum InterpolationMode] for available modes. + Gradient's offsets returned as a [PackedFloat32Array]. + + + Linear interpolation. + + + Constant interpolation, color changes abruptly at each point and stays uniform between. This might cause visible aliasing when used for a gradient texture in some cases. + + + Cubic interpolation. + + -- cgit v1.2.3