colorHexToS
Syntax
float colorHexToS(hexValue)
Parameters
- 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
This function converts a hexadecimal color string to HSV and returns the S value.
Related
- colorHexToH function
- colorHexToV function
- colorHexToR function
- colorHexToG function
- colorHexToB function
- colorHexToO function
- colorHSVToHex function
- colorHSVOToHex function
- colorRGBToHex function
- colorRGBOToHex function
Examples
colorHexToS("#608040") # result = 0.5 colorHexToS("#60804080") # result = 0.5
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.