summaryrefslogtreecommitdiffhomepage
path: root/cheatsheet
diff options
context:
space:
mode:
authorJulianiolo <[email protected]>2021-04-23 17:16:17 +0200
committerJulianiolo <[email protected]>2021-04-23 17:16:17 +0200
commit72f0c901c6e0fab84af4dd4c913aaa5bbe0e4c60 (patch)
tree68730bab5715cf0ceebbeb3f85b817e5acfbe56c /cheatsheet
parentca2d181c90ec8d108dbc6e929a7e06bbe319987e (diff)
downloadraylib.com-72f0c901c6e0fab84af4dd4c913aaa5bbe0e4c60.tar.gz
raylib.com-72f0c901c6e0fab84af4dd4c913aaa5bbe0e4c60.zip
updated HSV in cheatsheet
added parameter ranges for ColorToHSV and ColorFromHSV
Diffstat (limited to 'cheatsheet')
-rw-r--r--cheatsheet/raylib_textures.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cheatsheet/raylib_textures.c b/cheatsheet/raylib_textures.c
index edb1eb8..98c4c6a 100644
--- a/cheatsheet/raylib_textures.c
+++ b/cheatsheet/raylib_textures.c
@@ -103,8 +103,8 @@
int ColorToInt(Color color); // Returns hexadecimal value for a Color
Vector4 ColorNormalize(Color color); // Returns Color normalized as float [0..1]
Color ColorFromNormalized(Vector4 normalized); // Returns Color from normalized values [0..1]
- Vector3 ColorToHSV(Color color); // Returns HSV values for a Color
- Color ColorFromHSV(float hue, float saturation, float value); // Returns a Color from HSV values
+ Vector3 ColorToHSV(Color color); // Returns HSV values for a Color, hue [0..360], saturation/value [0..1]
+ Color ColorFromHSV(float hue, float saturation, float value); // Returns a Color from HSV values, hue [0..360], saturation/value [0..1]
Color ColorAlpha(Color color, float alpha); // Returns color with alpha applied, alpha goes from 0.0f to 1.0f
Color ColorAlphaBlend(Color dst, Color src, Color tint); // Returns src alpha-blended into dst color with tint
Color GetColor(int hexValue); // Get Color structure from hexadecimal value