Watch
2
0
Fork
You've already forked raylib-cs
0

Add Fade function for compatibility with previous versions

- Recommended you use ColorAlpha instead but this makes it easier
for users to update to 3.5.0. Fixes #68.
This commit is contained in:
Rgebee 2020-12-28 18:13:45 +00:00
commit 60973394ad

View file

@ -842,6 +842,10 @@ namespace Raylib_cs
// Callback delegate used in SetTraceLogCallback to allow for custom logging
public delegate void TraceLogCallback(TraceLogType logType, string text, IntPtr args);
// Returns color with alpha applied, alpha goes from 0.0f to 1.0f
// NOTE: Added for compatability with previous versions
public static Color Fade(Color color, float alpha) => ColorAlpha(color, alpha);
//------------------------------------------------------------------------------------
// Window and Graphics Device Functions (Module: core)
//------------------------------------------------------------------------------------