Color » History » Version 9
Per Amundsen, 02/16/2023 02:01 AM
1 | 1 | Per Amundsen | _Added in 1.9.4_ |
---|---|---|---|
2 | |||
3 | */color <name> <N|RGB>* |
||
4 | */color <N> <RGB>* |
||
5 | */color -lrs [N/scheme name]* |
||
6 | |||
7 | Allows you to change the color settings for items in the Colors dialog. |
||
8 | |||
9 | 4 | Per Amundsen | _See also [[$color]], [[$ocolor]]._ |
10 | |||
11 | 1 | Per Amundsen | *Switches* |
12 | |||
13 | 9 | Per Amundsen | table(ktable). |
14 | |*Switch*|*Description*| |
||
15 | | -b | Indicates the <N> after <name> is a rgb value. *(AdiIRC only)* | |
||
16 | | -l | Reloads colors from the config file. | |
||
17 | | -r | Resets the color to default value. | |
||
18 | | -s | *TODO* | |
||
19 | 1 | Per Amundsen | |
20 | 8 | Per Amundsen | *Parameters* |
21 | 1 | Per Amundsen | |
22 | 9 | Per Amundsen | table(ktable). |
23 | |*Parameter*|*Description*| |
||
24 | | <N> | The Nth color to change, in AdiIRC this can be from 1 to 82. | |
||
25 | | <RGB> | New RGB values to be used. | |
||
26 | | <name> | Name or the color to change. | |
||
27 | | [Scheme name] | *TODO* | |
||
28 | 1 | Per Amundsen | |
29 | *Example* |
||
30 | |||
31 | <pre> |
||
32 | 2 | Per Amundsen | ; Print a text using color 3 |
33 | 1 | Per Amundsen | /echo 3 -ag Hello world |
34 | |||
35 | 2 | Per Amundsen | ; Change color 3 to $rgb value 1905919 (notice the 'Hello world' color) |
36 | 1 | Per Amundsen | //color 3 $rgb(255, 20, 29) |
37 | |||
38 | 2 | Per Amundsen | ; Reset color 3 to default value (notice the 'Hello world' color) |
39 | 1 | Per Amundsen | /color -r 3 |
40 | |||
41 | 2 | Per Amundsen | ; Change the join color to another color index. |
42 | 1 | Per Amundsen | /color join 3 |
43 | |||
44 | 2 | Per Amundsen | ; Change the join color to a rgb value. |
45 | 1 | Per Amundsen | //color join $rgb(255, 20, 29) |
46 | |||
47 | 2 | Per Amundsen | ; Reset join color |
48 | 1 | Per Amundsen | /color -r join |
49 | 5 | Per Amundsen | |
50 | ; /color can also be used to change other colors in the config file |
||
51 | ; Change the part color to red |
||
52 | 6 | Per Amundsen | ; Notice it uses 43 instead of 44, it does +1 internally to work with 0-15 mirc colors. |
53 | 5 | Per Amundsen | /color -b 43 $rgb(255,0,0) |
54 | 7 | Per Amundsen | //echo -ag part color is $ocolor(44) |
55 | 1 | Per Amundsen | </pre> |