colorHexToH function

Syntax

  • float colorHexToH(hexValue)

Parameters

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

Returns

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

Description

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

Related

Examples

colorHexToH("#608040")
# result = 90
colorHexToH("#60804080")
# result = 90

In this topic