colorHexToS function

This 2019.0 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Syntax

  • string colorHexToS(hex)

Parameters

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

Returns

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

Description

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

Related

Examples

example.1
	colorHexToS("#608040")
	# result = 0.5

example.2
	colorHexToS("#60804080")
	# result = 0.5

In this topic