From RGB to HSV in OpenGL GLSL

后端 未结 2 1769
我寻月下人不归
我寻月下人不归 2020-12-04 09:18

I need to pass from RGB color space to HSV .. I searched in internet and found two different implementations, but those give me different results:

A:



        
2条回答
  •  情书的邮戳
    2020-12-04 09:31

    I don't have a development environment to check, but you can use wolframAlpha to build up some asserts.

    For Instance: rgb(1,0,0)(pure red) to hsv is 0, 100%, 100% in hsv.

提交回复
热议问题