Adjust the color ID contrast threshold.
Totally not arbitrary edition.
This commit is contained in:
parent
cb498db8df
commit
b394a81494
@ -27,7 +27,7 @@ IDColor =
|
|||||||
(hash >> 16) & 0xFF
|
(hash >> 16) & 0xFF
|
||||||
(hash >> 8) & 0xFF
|
(hash >> 8) & 0xFF
|
||||||
]
|
]
|
||||||
rgb.push if (rgb[0] * 0.299 + rgb[1] * 0.587 + rgb[2] * 0.114) > 125
|
rgb.push if (rgb[0] * 0.299 + rgb[1] * 0.587 + rgb[2] * 0.114) > 170
|
||||||
'black'
|
'black'
|
||||||
else
|
else
|
||||||
'white'
|
'white'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user