From 4ef700f81d763ffdadf85d4398ad547039204eab Mon Sep 17 00:00:00 2001 From: Arya Gupta Date: Thu, 26 Jan 2023 23:39:04 +0530 Subject: [PATCH] Update PApplet.java Signed-off-by: Arya Gupta --- core/src/processing/core/PApplet.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index bb810610b..b76c63826 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -9639,10 +9639,11 @@ public class PApplet implements PConstants { /** * - * Calculates a color between two colors at a specific increment. The - * amt parameter is the amount to interpolate between the two values - * where 0.0 is equal to the first point, 0.1 is very near the first point, - * 0.5 is halfway in between, etc.
+ * Calculates a new color that is a blend of two other colors. The amt parameter + * controls the amount of each color to use where an amount of 0.0 will produce + * the first color, 1.0 will return the second color, and 0.5 is halfway in + * between. Values between 0.0 and 1.0 will interpolate between the two colors in + * that proportion.
* An amount below 0 will be treated as 0. Likewise, amounts above 1 will be * capped at 1. This is different from the behavior of lerp(), but necessary * because otherwise numbers outside the range will produce strange and