Color H S V at Color

Color H S V. 0 is red, 120 is green, 240 is blue. 要得到淡蓝色,v=1 s=0.4 h=210度。 一般说来,人眼最大能区分128种不同的色彩,130种色饱和度,23种明暗度。 如果我们用16bit表示hsv的话,可以用7位存放h,4位存放s,5位存放v,即745或者655就可以满足我们的需要了。

3d Color Colors Wheel HSV HSB RGB White Background Isolated Isometric Stock Illustration
3d Color Colors Wheel HSV HSB RGB White Background Isolated Isometric Stock Illustration from www.dreamstime.com

Hsva = pygame.color ( (red, green, blue, alpha)).hsva color = pygame.color (0) color.hsva = (hue, saturation, value, alpha) rgba = (color.r, color.g, color.b, color.a) the hsla property: Name hex (r,g,b) (h,s,v) black #000000 (0,0,0) (0°,0%,0%) white:. 但是 (h, s, l)或 (h, s, v)三元组在被约束于特定rgb空间比如srgb的时候就更明确了。 hsv模型在1978年由 埃爾維·雷·史密斯 创立,它是 三原色光模式 的一种非线性变换,如果說rgb 加色法 是 三維直角座標系 ,那麼hsv模型就是 球面座標系 。

3d Color Colors Wheel HSV HSB RGB White Background Isolated Isometric Stock Illustration

Hue, the color type (such as red, blue, or yellow): Saturation (s) of the color ranges from 0 to 100%. Hsv has three components which include: The hsva components are in the ranges h = [0, 360], s = [0, 100], v = [0, 100], a = [0, 100].