$color » History » Version 6
Per Amundsen, 11/09/2018 09:51 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$color(name/N)* |
||
| 4 | |||
| 5 | Returns the Nth color index of the specified color name. If you do not specify the full name the first partial match is returned. |
||
| 6 | |||
| 7 | If you specify an N value, returns the RGB value for the Nth color box. |
||
| 8 | |||
| 9 | 6 | Per Amundsen | _See also [[/color]], [[$ocolor]], [[Extra Colors]]._ |
| 10 | 5 | Per Amundsen | |
| 11 | 1 | Per Amundsen | *Parameters* |
| 12 | |||
| 13 | name/N - Named color or Nth color to retrieve. |
||
| 14 | |||
| 15 | *Properties* |
||
| 16 | |||
| 17 | 4 | Per Amundsen | .dd - Returns number in double-digit format. |
| 18 | .hex - Returns the color in RRGGBB hex format. (AdiIRC only) |
||
| 19 | 1 | Per Amundsen | |
| 20 | *Example* |
||
| 21 | <pre> |
||
| 22 | ;Get the action color |
||
| 23 | //echo -ag action color is $color(action) |
||
| 24 | |||
| 25 | ;Get the action color by partial match in double digits |
||
| 26 | //echo -ag action color is $color(act).dd |
||
| 27 | |||
| 28 | ;Get the rgb value for color 5 |
||
| 29 | //echo -ag rgb value for 5 is $color(5) |
||
| 30 | </pre> |
||
| 31 | |||
| 32 | 2 | Per Amundsen | *Color names* |
| 33 | |||
| 34 | 3 | Per Amundsen | Background text |
| 35 | Action text |
||
| 36 | Ctcp text |
||
| 37 | Highlight text |
||
| 38 | Info text |
||
| 39 | Info2 text |
||
| 40 | Invite text |
||
| 41 | Join text |
||
| 42 | Kick text |
||
| 43 | Mode text |
||
| 44 | Nick text |
||
| 45 | Normal text |
||
| 46 | Notice text |
||
| 47 | Notify text |
||
| 48 | Other text |
||
| 49 | Own text |
||
| 50 | Part text |
||
| 51 | Quit text |
||
| 52 | Topic text |
||
| 53 | Wallops text |
||
| 54 | Whois text |
||
| 55 | Editbox text |
||
| 56 | Inactive text |
||
| 57 | Listbox text |
||
| 58 | Gray text |
||
| 59 | Title text |
||
| 60 | Treebar text |