Update to raylib5.5
This commit is contained in:
10
src/Math.cpp
10
src/Math.cpp
@@ -6,16 +6,6 @@
|
||||
|
||||
#include <raymath.h>
|
||||
|
||||
Color ColorLerp(Color c1, Color c2, float amount)
|
||||
{
|
||||
Color ret{0};
|
||||
ret.r = Clamp(Lerp(c1.r, c2.r, amount), 0, 255);
|
||||
ret.g = Clamp(Lerp(c1.g, c2.g, amount), 0, 255);
|
||||
ret.b = Clamp(Lerp(c1.b, c2.b, amount), 0, 255);
|
||||
ret.a = Clamp(Lerp(c1.a, c2.a, amount), 0, 255);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Color ColorAddValue(Color c, int add)
|
||||
{
|
||||
int r = std::clamp(c.r + add, 0, 255);
|
||||
|
||||
Reference in New Issue
Block a user