mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-06-30 19:03:42 -04:00
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:
@ -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)
|
||||
//------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user