首页 > 其他 > 详细

HSV to RGB

时间:2018-07-27 11:40:37      阅读:114      评论:0      收藏:0      [点我收藏+]

HSV构成:

技术分享图片

  • Hue : the color type (red, blue, or yellow) Ranges from 0 to 360°

  • Saturation : the intensity of the color. Ranges from 0 to 100%

  • Brightness (or Value) : the brightness of the color. Ranges from 0 to 100%

 

HSV to RGB conversion formula

When 0 ≤ H < 360, 0 ≤ S ≤ 1 and 0 ≤ V ≤ 1:

C = V × S

X = C × (1 - |(H / 60°) mod 2 - 1|)

m = V - C

技术分享图片

(R,G,B) = ((R‘+m)×255, (G‘+m)×255, (B‘+m)×255)

HSV to RGB

原文:https://www.cnblogs.com/sen-c7/p/9376479.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!