diff options
| author | raysan5 <[email protected]> | 2020-09-07 19:33:06 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-07 19:33:06 +0200 |
| commit | f1ed8be5d7e2d966d577a3fd28e53447a398b3b6 (patch) | |
| tree | ffedc95824890dad3ee654d1a746e1b37f9d509e /src/raylib.h | |
| parent | 85d5744679a14ca52ca40f924ab4f7614bf7e17c (diff) | |
| download | raylib-f1ed8be5d7e2d966d577a3fd28e53447a398b3b6.tar.gz raylib-f1ed8be5d7e2d966d577a3fd28e53447a398b3b6.zip | |
REDESIGNED: ColorFromHSV()
Replaced Vector3 by direct values, easier to use and understand
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 74c56592..9193d378 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1204,7 +1204,7 @@ RLAPI int ColorToInt(Color color); // R RLAPI Vector4 ColorNormalize(Color color); // Returns Color normalized as float [0..1] RLAPI Color ColorFromNormalized(Vector4 normalized); // Returns Color from normalized values [0..1] RLAPI Vector3 ColorToHSV(Color color); // Returns HSV values for a Color -RLAPI Color ColorFromHSV(Vector3 hsv); // Returns a Color from HSV values +RLAPI Color ColorFromHSV(float hue, float saturation, float value); // Returns a Color from HSV values RLAPI Color ColorAlpha(Color color, float alpha); // Returns color with alpha applied, alpha goes from 0.0f to 1.0f RLAPI Color ColorAlphaBlend(Color dst, Color src, Color tint); // Returns src alpha-blended into dst color with tint RLAPI Color GetColor(int hexValue); // Get Color structure from hexadecimal value |
