Project

General

Profile

Added in 3.0

$hexcolor(color)

Converts a hex color into $rgb decimal format.

Parameters

color - The hex color to convert.

Properties

.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 26 days ago · 1 revisions

Also available in: PDF HTML TXT