colorHexToR

Syntax

float colorHexToR(hexValue)

Parameters

Returns

Returns R value in [0,1] after converting hexadecimal color to RGB.

Description

This function converts a hexadecimal color string to RGB and returns the R value.

Related

Examples

colorHexToR("#4080BF")
# result = 0.2509803921568628

colorHexToR("#4080BF80")
# result = 0.2509803921568628

Copyright ©2008-2023 Esri R&D Center Zurich. All rights reserved.