Rebol 编程/亮度?
外观
< Rebol 编程
BRIGHTNESS? color
返回颜色值的单色亮度(0.0 到 1.0)。
BRIGHTNESS? 是一个函数值。
- color -- (类型:元组)
brightness?: func [ {Returns the monochrome brightness (0.0 to 1.0) for a color value.} color [tuple!] ][ (0.27 * color/1) + (0.63 * color/2) + (0.1 * color/3) / 255 ]