$hexcolor » History » Version 1
Per Amundsen, 08/31/2017 01:50 AM
| 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 | color - The hex color to convert. |
||
| 10 | |||
| 11 | *Properties* |
||
| 12 | |||
| 13 | .rgb - Convert to rrr,ggg,bbb format instead. |
||
| 14 | |||
| 15 | *Example* |
||
| 16 | |||
| 17 | <pre> |
||
| 18 | ; Returns "255" decimal. |
||
| 19 | //echo -ag $hexcolor(FF0000) |
||
| 20 | |||
| 21 | ; Returns "255,0,0" rrr,ggg,bbb value. |
||
| 22 | //echo -ag $hexcolor(FF0000).rgb |
||
| 23 | </pre> |