colorHexToH function

float colorHexToH(hexValue)

hexValue string Hexadecimal color string in the format "#rrggbb" or "#rrggbboo"

Returns the H value in [0,360] degrees after converting a hexadecimal color to HSV.

This function converts a hexadecimal color string to HSV and returns the H value.

Related

Examples

colorHexToH("#608040")
# result = 90

colorHexToH("#60804080")
# result = 90