Get the brightness of a color between 0 (darkest) to 255 (brightest)
color:get_luminance(STRING $hex_color_code)
color:get_luminance('fff')
#=> 255.0
color:get_luminance('000')
#=> 0.0
color:get_luminance('ff0000')
#=> 76.24499999999999
Copyright ©2013-2022 SunSed®. All rights reserved.