REDESIGNED: ColorFromHSV()
Replaced Vector3 by direct values, easier to use and understand
This commit is contained in:
parent
85d5744679
commit
f1ed8be5d7
4 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue