File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -941,12 +941,22 @@ so it has meaningful values for the channels.
941941
942942 Using this,
943943 ''red'' would become ''rgb(30% 30% 30%)'' ,
944- ''green '' would become ''rgb(59% 59% 59%)'' ,
944+ ''lime '' would become ''rgb(59% 59% 59%)'' ,
945945 and ''blue'' would become ''rgb(11% 11% 11%)'' .
946946 A more moderate color, like ''darkolivegreen'' ,
947947 which has RGB values ''rgb(85 107 47)'' ,
948948 would become approximately ''rgb(37% 37% 37%)'' .
949949
950+ (Rough because firstly,
951+ although this looks like a luminance calculation,
952+ the red green and blue values
953+ are manipulated in gamma-encoded space
954+ rather than linear-light;
955+ secondly,
956+ the weighting factors are those
957+ for the obsolete NTSC color space,
958+ not sRGB.)
959+
950960 (Note, though, that an easier and more accurate way to grayscale a color
951961 is to use the ''lch()'' function,
952962 as that color space is more accurate to human perception:
You can’t perform that action at this time.
0 commit comments