From 5c638b2d89f01af3142fff9bd6b436ea5a554362 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 25 Jun 2025 15:21:00 +0200 Subject: [PATCH] Document `Gradient.sample()` clamping behavior --- doc/classes/Gradient.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Gradient.xml b/doc/classes/Gradient.xml index ee69d453ad..996cf36e56 100644 --- a/doc/classes/Gradient.xml +++ b/doc/classes/Gradient.xml @@ -56,7 +56,7 @@ - Returns the interpolated color specified by [param offset]. + Returns the interpolated color specified by [param offset]. [param offset] should be between [code]0.0[/code] and [code]1.0[/code] (inclusive). Using a value lower than [code]0.0[/code] will return the same color as [code]0.0[/code], and using a value higher than [code]1.0[/code] will return the same color as [code]1.0[/code]. If your input value is not within this range, consider using [method @GlobalScope.remap] on the input value with output values set to [code]0.0[/code] and [code]1.0[/code].