Appearance
▸ getGrayLevelFromRgb(color): number
color
number
从 rgb 获取灰度
示例
const grayLevel = getGrayLevelFromRgb([255, 0, 0])
color.js