summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-06-16 10:36:05 +0200
committerraysan5 <[email protected]>2020-06-16 10:36:05 +0200
commitafcc584fb6f865de88a1f560d59aeb92b4afd818 (patch)
tree84382fb2ad0c71ff6972c5254ec634e1ebfddb44 /src/raylib.h
parent589d606000a61aaf9d7f14089a83a2bb30c3e714 (diff)
downloadraylib-afcc584fb6f865de88a1f560d59aeb92b4afd818.tar.gz
raylib-afcc584fb6f865de88a1f560d59aeb92b4afd818.zip
RE-ADDED: Fade() function to avoid multiple breaking changes
Probably there is a better way to do this but this is a temporary solution for backward compatibility
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 d92376bf..97c7de6a 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1190,6 +1190,7 @@ RLAPI void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle dest
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely
// Color/pixel related functions
+RLAPI Color Fade(Color color, float alpha); // Returns color with alpha applied, alpha goes from 0.0f to 1.0f
RLAPI int ColorToInt(Color color); // Returns hexadecimal value for a Color
RLAPI Vector4 ColorNormalize(Color color); // Returns Color normalized as float [0..1]
RLAPI Color ColorFromNormalized(Vector4 normalized); // Returns Color from normalized values [0..1]