mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-07 20:08:14 +00:00
format tweak
This commit is contained in:
@@ -3821,7 +3821,7 @@ Color Fade(Color color, float alpha)
|
|||||||
if (alpha < 0.0f) alpha = 0.0f;
|
if (alpha < 0.0f) alpha = 0.0f;
|
||||||
else if (alpha > 1.0f) alpha = 1.0f;
|
else if (alpha > 1.0f) alpha = 1.0f;
|
||||||
|
|
||||||
return (Color){color.r, color.g, color.b, (unsigned char)(255.0f*alpha)};
|
return (Color){ color.r, color.g, color.b, (unsigned char)(255.0f*alpha) };
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get hexadecimal value for a Color
|
// Get hexadecimal value for a Color
|
||||||
|
Reference in New Issue
Block a user