From f224ff62dccc5ae39150d6c4d4cd7a5de62af036 Mon Sep 17 00:00:00 2001 From: Guillaume <54359117+DayMoniakk@users.noreply.github.com> Date: Wed, 4 Feb 2026 11:49:52 +0100 Subject: [PATCH] Fix Color.Lerp Resolves incorrect tweening behavior where G/B/A interpolated from origin.R --- Raylib-cs/types/Color.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Raylib-cs/types/Color.cs b/Raylib-cs/types/Color.cs index d696152..da678d1 100644 --- a/Raylib-cs/types/Color.cs +++ b/Raylib-cs/types/Color.cs @@ -210,9 +210,9 @@ public struct Color public static Color Lerp(Color origin, Color target, float t) { byte r = LerpB(origin.R, target.R, t); - byte g = LerpB(origin.R, target.G, t); - byte b = LerpB(origin.R, target.B, t); - byte a = LerpB(origin.R, target.A, t); + byte g = LerpB(origin.G, target.G, t); + byte b = LerpB(origin.B, target.B, t); + byte a = LerpB(origin.A, target.A, t); return new Color(r, g, b, a); }