Project

General

Profile

Actions

Added in 3.0

$hexcolor(color)

Converts a hex color into $rgb decimal format.

Parameters

Parameter Description
color The hex color to convert.

Properties

Property Description
.rgb Convert to rrr,ggg,bbb format instead.

Example

; Returns "255" decimal.
//echo -ag $hexcolor(FF0000)

; Returns "255,0,0" rrr,ggg,bbb value.
//echo -ag $hexcolor(FF0000).rgb

Updated by Per Amundsen over 1 year ago · 2 revisions

Also available in: PDF HTML TXT