colorHexToS function

Syntax

  • float colorHexToS(hexValue)

Parameters

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

Returns

returns S value in [0,1] after converting hexadecimal color to HSV.

Description

The colorHexToS function converts a hexadecimal color string to HSV and returns the S value.

Related

Examples

colorHexToS("#608040")
# result = 0.5
colorHexToS("#60804080")
# result = 0.5

In this topic