dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
2 stars 10 forks source link

RGB to HSV: What is the range of RGB values? #66

Closed jennicao closed 2 months ago

jennicao commented 2 months ago

For converting between RGB and HSV, is the range of red, green, and blue intensities 0 to 1, or 0 to 255?

The two header files below say 0 to 1, but I just want to double check.

Zhecheng-Wang commented 2 months ago

0 to 1 for those two. When I mentioned 0-255 in the tutorial it was referring to most function outputs (that will directly write to a ppm file so the range is 0-255).