diff options
| author | Ray <[email protected]> | 2018-02-12 11:55:22 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-02-12 11:55:22 +0100 |
| commit | 36750ffb9a71836d06cc2a951dfdf0e9ed87a61c (patch) | |
| tree | 8ec3f76a6e9c45fcbafa4c68429946162bcd91fa /src/raylib.h | |
| parent | 7530a60abcd02872cfd406117414adc22623619a (diff) | |
| download | raylib-36750ffb9a71836d06cc2a951dfdf0e9ed87a61c.tar.gz raylib-36750ffb9a71836d06cc2a951dfdf0e9ed87a61c.zip | |
BREAKING CHANGE: Renamed function for consistency
Rename: GetHexValue() renamed to ColorToInt()
Added: ColorToHSV()
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index e3f30e43..fba973d0 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -728,10 +728,11 @@ RLAPI float GetFrameTime(void); // Returns tim RLAPI double GetTime(void); // Returns elapsed time in seconds since InitWindow() // Color-related functions -RLAPI int GetHexValue(Color color); // Returns hexadecimal value for a Color +RLAPI float *ColorToFloat(Color color); // Returns normalized float array for a Color +RLAPI int ColorToInt(Color color); // Returns hexadecimal value for a Color +RLAPI Vector3 ColorToHSV(Color color); // Returns HSV values for a Color RLAPI Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value RLAPI Color Fade(Color color, float alpha); // Color fade-in or fade-out, alpha goes from 0.0f to 1.0f -RLAPI float *ColorToFloat(Color color); // Converts Color to float array and normalizes // Math useful functions (available from raymath.h) RLAPI float *Vector3ToFloat(Vector3 vec); // Returns Vector3 as float array |
