mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-15 19:05:34 +00:00
REDESIGNED: ColorFromHSV()
Replaced Vector3 by direct values, easier to use and understand
This commit is contained in:
@@ -84,7 +84,7 @@ int main()
|
||||
};
|
||||
|
||||
// Pick a color with a hue depending on cube position for the rainbow color effect
|
||||
Color cubeColor = ColorFromHSV((Vector3){ (float)(((x + y + z)*18)%360), 0.75f, 0.9f });
|
||||
Color cubeColor = ColorFromHSV((float)(((x + y + z)*18)%360), 0.75f, 0.9f);
|
||||
|
||||
// Calculate cube size
|
||||
float cubeSize = (2.4f - scale)*blockScale;
|
||||
|
||||
Reference in New Issue
Block a user