HSV returning 0,0,0

This line below:

print(Color3.fromHSV(0.7,0,0))

prints out ‘0,0,0’, so I cannot use Color3.FromHSV properly. Can anyone tell me what is going on?

The Color3 RGB of Color3.fromHSV(.7,0,0) is 0,0,0.

This is because if your saturation and value are both zero, your hue has no effect on the final color. That is why this returns 0,0,0 (black because there is 0 red, 0 green, and 0 blue - just a complete absence of color). If you were to print(Color3.fromHSV(.7,1,1), you would obtain that blue color you probably desired.

1 Like

Oops, I was trying to create a rainbow effect without realizing I replaced the ‘1’ with ‘0’

Color3.fromHSV ( number hue, number saturation, number value )
Creates a Color3 with the given hue, saturation, and value. The parameters should be on the range [0, 1].