grayscale

fun grayscale(): RGB

Converts the color to grayscale using the W3C formula for relative luminance through the RGB color space.

Return

The grayscale color as an RGB.