Add basic rotation
Rotate texuture based on mouse position
This commit is contained in:
11
inc/Math.hpp
11
inc/Math.hpp
@@ -1,12 +1,5 @@
|
||||
#include "raylib.h"
|
||||
#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 ColorLerp(Color c1, Color c2, float amount);
|
||||
Rectangle CalculateRect(Vector2 center, float rotation, float width, float height);
|
Reference in New Issue
Block a user