colorHexToH function

Syntax

  • string colorHexToH(hex)

Parameters

  1. hex—string
    Hex color string in the format "#rrggbb" or "#rrggbboo"

Returns

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

Description

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

Related

Examples

example.1
	colorHexToH("#608040")
	# result = 90

example.2
	colorHexToH("#60804080")
	# result = 90

In this topic