Administrators kate 104 Posted March 25 Administrators Share Posted March 25 Color codes There are 32 colors available -- internally, the game has a table of all 32 colors (starting with color #0) and uses the ASCII value of the character following the caret plus 16 to determine which color to use, looping back around to color #0 after color #31. The index lookup could be described in C code as '(*char + 16) & 31'. The following table shows what the index of each color is, its HTML color code equivalent, and the characters that will produce the color in-game if placed after a caret: Index HTML color Characters 0 #000000 0 P p ° Ð ð 1 #ff0000 1 Q q ± Ñ ñ 2 #00ff00 2 R r ² Ò ò 3 #ffff00 3 S s ³ Ó ó 4 #0000ff 4 T t Ž Ô ô 5 #00ffff 5 U u µ Õ õ 6 #ff00ff 6 V v ¶ Ö ö 7 #ffffff 7 W w · × ÷ 8 #ff7f00 8 X x ž Ø ø 9 #7f7f7f 9 Y y ¹ Ù ù 10 #bfbfbf : Z z º Ú ú 11 #bfbfbf ; [ { › Û û 12 #007f00 < \ | Œ Ü ü 13 #7f7f00 = ] } œ Ý ý 14 #00007f > ˆ ~ Ÿ Þ þ 15 #7f0000 ? _ ¿ ß Ÿ ÿ 16 #7f3f00 @ ` À à 17 #ff9919 ! A a ¡ Á á 18 #007f7f " B b ¢  â 19 #7f007f # C c £ à ã 20 #007fff $ D d € Ä ä 21 #7f00ff % E e ¥ Å å 22 #3399cc & F f Š Æ æ 23 #ccffcc ' G g § Ç ç 24 #006633 ( H h š È è 25 #ff0033 ) I i © É é 26 #b21919 * J j ª Ê ê 27 #993300 + K k « Ë ë 28 #cc9933 , L l ¬ Ì ì 29 #999933 - M m Í í 30 #ffffbf . N n ® Î î 31 #ffff7f / O o ¯ Ï ï Link to post Share on other sites
Recommended Posts