$ocolor » History » Version 6
Per Amundsen, 02/23/2023 06:40 PM
| 1 | 1 | Per Amundsen | _Added in 2.7_ |
|---|---|---|---|
| 2 | |||
| 3 | *$ocolor(N)* |
||
| 4 | |||
| 5 | Returns the Nth color index of the internal color list as a [[$rgb]] value. |
||
| 6 | |||
| 7 | 4 | Per Amundsen | _See also [[Config File Colors]], [[/echo]]._ |
| 8 | 1 | Per Amundsen | |
| 9 | *Parameters* |
||
| 10 | |||
| 11 | 6 | Per Amundsen | table(ktable). |
| 12 | |*Parameter*|*Description*| |
||
| 13 | | N | The Nth color to retrieve. | |
||
| 14 | 1 | Per Amundsen | |
| 15 | *Properties* |
||
| 16 | |||
| 17 | 6 | Per Amundsen | table(ktable). |
| 18 | |*Property*|*Description*| |
||
| 19 | | .rgb | returns the color in rrr,ggg,bbb format. | |
||
| 20 | | .hex | returns the color in hex format. | |
||
| 21 | 1 | Per Amundsen | |
| 22 | *Example* |
||
| 23 | <pre> |
||
| 24 | ; Get the Editbox color |
||
| 25 | //echo -ag Editbox color is $ocolor(30).rgb |
||
| 26 | </pre> |