<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: colour</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>colour</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/colour.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/colour.py</a></font></td></tr></table>
    <p><tt>colour.py<br>
 <br>
NakedMud's base colour module. Contains functions for outbound text processing<br>
to add ASCII colour codes to the text.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>      </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="hooks.html">hooks</a><br>
</td><td width="25%" valign=top><a href="mud.html">mud</a><br>
</td><td width="25%" valign=top><a href="mudsock.html">mudsock</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>      </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-__unload__"><strong>__unload__</strong></a>()</dt><dd><tt>detaches our colour module from the game</tt></dd></dl>
 <dl><dt><a name="-process_colour_hook"><strong>process_colour_hook</strong></a>(info)</dt><dd><tt>When outbound text is being processed, find colour codes and replace them<br>
by the proper colour escape sequences.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>      </tt></td><td> </td>
<td width="100%"><strong>base_colour_marker</strong> = '{'<br>
<strong>base_colours</strong> = {'b': '34', 'c': '36', 'd': '30', 'g': '32', 'n': '0', 'p': '35', 'r': '31', 'w': '37', 'y': '33'}<br>
<strong>cDARK</strong> = '0'<br>
<strong>cLIGHT</strong> = '1'<br>
<strong>c_blue</strong> = 'b'<br>
<strong>c_cyan</strong> = 'c'<br>
<strong>c_dark</strong> = 'd'<br>
<strong>c_green</strong> = 'g'<br>
<strong>c_magenta</strong> = 'p'<br>
<strong>c_none</strong> = 'n'<br>
<strong>c_red</strong> = 'r'<br>
<strong>c_white</strong> = 'w'<br>
<strong>c_yellow</strong> = 'y'<br>
<strong>colour_start</strong> = '<font color="#c040c0">\x1b</font>['</td></tr></table>
</body></html>