colors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
colors [2007/03/26 00:34]
Blueeagle Bolded the command so it would be easier to find
colors [2007/03/26 00:35]
Blueeagle Bolded the command so it would be easier to find
Line 5: Line 5:
 Color tags are string of the format ##//name//##. //name// can be either the name of a pre-defined color or the name of a color scheme. All legal color tags will be replaced with the <font> tags required by AO before sending the output. Unknown tags won't be touched though. Color tags are string of the format ##//name//##. //name// can be either the name of a pre-defined color or the name of a color scheme. All legal color tags will be replaced with the <font> tags required by AO before sending the output. Unknown tags won't be touched though.
 In addition to the tags for colors and schemes the special tag ##end## allows to end a colored substring. In addition to the tags for colors and schemes the special tag ##end## allows to end a colored substring.
 +
  
 ====== Pre-defined colors: ====== ====== Pre-defined colors: ======
 The colors module comes with a large selection of pre-defined colors which can be used either directly or in color schemes. Those colors are global over all bots in the default setting of the module. The colors module comes with a large selection of pre-defined colors which can be used either directly or in color schemes. Those colors are global over all bots in the default setting of the module.
-If any additional colors are needed, they can be added by using the function //$this -> bot -> colors -> define_color($name, $code)//. //$name// is the name give to the new color, //$code// is the hexcode for the color as used by the font tag, __together with the leading #.__+If any additional colors are needed, they can be added by using the function **//$this -> bot -> colors -> define_color($name, $code)//**. //$name// is the name give to the new color, //$code// is the hexcode for the color as used by the font tag, __together with the leading #.__
 The color red is defined by //define_color("red", "#FF0000")// for example. The color red is defined by //define_color("red", "#FF0000")// for example.
  
  • colors.txt
  • Last modified: 2020/09/12 01:30
  • (external edit)