Project

General

Profile

$hexcolor » History » Version 2

Per Amundsen, 02/23/2023 01:42 PM

1 1 Per Amundsen
_Added in 3.0_
2
3
*$hexcolor(color)*
4
5
Converts a hex color into [[$rgb]] decimal format.
6
7
*Parameters*
8
9 2 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| color | The hex color to convert. |
12 1 Per Amundsen
13
*Properties*
14
15 2 Per Amundsen
table(ktable).
16
|*Property*|*Description*|
17
| .rgb | Convert to rrr,ggg,bbb format instead. |
18 1 Per Amundsen
19
*Example*
20
21
<pre>
22
; Returns "255" decimal.
23
//echo -ag $hexcolor(FF0000)
24
25
; Returns "255,0,0" rrr,ggg,bbb value.
26
//echo -ag $hexcolor(FF0000).rgb
27
</pre>