tryComputeTbgrFromString MethodStatic

Try to compute the 0xTTBBGGRR value corresponding to a string representation of a ColorDef.

tryComputeTbgrFromString(val: string): number | undefined

@returns the corresponding numeric representation, or undefined if the input does not represent a color.

@see fromString for the definition of a valid color string.

Parameter Type Description
val string  

Returns - number | undefined

the corresponding numeric representation, or undefined if the input does not represent a color.

Defined in

Last Updated: 28 April, 2026