summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2024-02-29 18:40:10 +0100
committerRay <[email protected]>2024-02-29 18:40:10 +0100
commit1e8450665c3726b6b7b96f9662f658bfc3b0b41a (patch)
tree13cad8aec45b2f711541fba319e30b8091c53e58 /src/raylib.h
parent94c79917e3b68fbed3ff4a3920edc9d093b11c4f (diff)
downloadraylib-1e8450665c3726b6b7b96f9662f658bfc3b0b41a.tar.gz
raylib-1e8450665c3726b6b7b96f9662f658bfc3b0b41a.zip
ADDED: New function `ColorIsEqual()`
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index d857f1c7..03045ed1 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1408,6 +1408,7 @@ RLAPI void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, V
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely
// Color/pixel related functions
+RLAPI bool ColorIsEqual(Color col1, Color col2); // Check if two colors are equal
RLAPI Color Fade(Color color, float alpha); // Get color with alpha applied, alpha goes from 0.0f to 1.0f
RLAPI int ColorToInt(Color color); // Get hexadecimal value for a Color
RLAPI Vector4 ColorNormalize(Color color); // Get Color normalized as float [0..1]