Skip to content
Starlon edited this page Nov 30, 2011 · 4 revisions

Functions

<tr>
<td class="name" nowrap><a href="#AggroColor">AggroColor</a>&nbsp;(unit, The)</td>
<td class="summary">Wraps UnitSelectionColor </td>
</tr>

<tr>
<td class="name" nowrap><a href="#BgColor">BgColor</a>&nbsp;(r, g, b)</td>
<td class="summary">Convert an RGB expression into a suitable color for a background behind the RGB value.</td>
</tr>

<tr>
<td class="name" nowrap><a href="#ClassColor">ClassColor</a>&nbsp;(unit)</td>
<td class="summary">Retrieve a color suitable to color a unit's class value </td>
</tr>

<tr>
<td class="name" nowrap><a href="#ColorBrightest">ColorBrightest</a>&nbsp;(col1, col2)</td>
<td class="summary">Determine and return the brightest of 2 32bit colors.</td>
</tr>

<tr>
<td class="name" nowrap><a href="#Colorize">Colorize</a>&nbsp;(str, r, g, b)</td>
<td class="summary">Retrieve a string suitable to insert a texture within a fonstring </td>
</tr>

<tr>
<td class="name" nowrap><a href="#GradientHealth">GradientHealth</a>&nbsp;(perc)</td>
<td class="summary">This comes from oUF.</td>
</tr>

<tr>
<td class="name" nowrap><a href="#HPColor">HPColor</a>&nbsp;(cur, max)</td>
<td class="summary">Return a suitable color along a gradient indicating health percentage </td>
</tr>

<tr>
<td class="name" nowrap><a href="#HostileColor">HostileColor</a>&nbsp;(unit)</td>
<td class="summary">Retrieve a color representing a unit's hostility toward's you </td>
</tr>

<tr>
<td class="name" nowrap><a href="#PluginColor:RedThroughBlue">PluginColor:RedThroughBlue</a>&nbsp;()</td>
<td class="summary">Retrieve a table representing the colors along a gradient red through blue </td>
</tr>

<tr>
<td class="name" nowrap><a href="#RGB2Black">RGB2Black</a>&nbsp;(red, green, blue)</td>
<td class="summary">Convert an RGB color into its black-white value </td>
</tr>

<tr>
<td class="name" nowrap><a href="#RGB2Gray">RGB2Gray</a>&nbsp;(red, green, blue)</td>
<td class="summary">Convert an RGB color into its greyscale value </td>
</tr>

<tr>
<td class="name" nowrap><a href="#RGB2HSV">RGB2HSV</a>&nbsp;(r, g, b, a)</td>
<td class="summary">Returns HSV colorspace values from RGB values </td>
</tr>

<tr>
<td class="name" nowrap><a href="#ReputationColor">ReputationColor</a>&nbsp;(reaction)</td>
<td class="summary">Accessor for FACTION_BAR_COLORS, which is suitable for color reputation values </td>
</tr>

<tr>
<td class="name" nowrap><a href="#ThreatStatusColor">ThreatStatusColor</a>&nbsp;(status)</td>
<td class="summary">Wraps GetThreatStatus Color </td>
</tr>

<tr>
<td class="name" nowrap><a href="#ThreatStatusColor">ThreatStatusColor</a>&nbsp;(status)</td>
<td class="summary">Wraps GetThreatStatus Color </td>
</tr>


Functions

AggroColor (unit, The)
Wraps UnitSelectionColor

Parameters

<li>
  unit: 
</li>

<li>
  The: unit in question
</li>

Usage:

AggroColor(unit)

Return value:

Red, green, and blue [[
BgColor (r, g, b)
Convert an RGB expression into a suitable color for a background behind the RGB value. This is part of LuaTexts.

Parameters

<li>
  r: The color's red value
</li>

<li>
  g: The color's green value
</li>

<li>
  b: The color's blue value
</li>

Usage:

BgColor(r, g, b)

Return value:

Red, green, and blue representing the new background color
ClassColor (unit)
Retrieve a color suitable to color a unit's class value

Parameters

<li>
  unit: The unit in question
</li>

Usage:

ClassColor(unit)

Return value:

red, green, and blue [[
ColorBrightest (col1, col2)
Determine and return the brightest of 2 32bit colors. The alpha channel is ignored.

Parameters

<li>
  col1: The first color to compare.
</li>

<li>
  col2: The second color to compare.
</li>

Usage:

ColorBrighest(color1, color2)

Return value:

The brighest of the two colors is returned.
Colorize (str, r, g, b)
Retrieve a string suitable to insert a texture within a fonstring

Parameters

<li>
  str: The string to color
</li>

<li>
  r: The color's red value
</li>

<li>
  g: The color's green value
</li>

<li>
  b: The color's blue value
</li>

Usage:

Colorize(str, r, g, b)

Return value:

A colorized string suitable to insert in a fonstring [[
GradientHealth (perc)
This comes from oUF. Trivial, but I like to give credit where credit is due.

Parameters

<li>
  perc: A value between 0 and 1 -- The position within the gradient
</li>

Usage:

Gradient(perc)

Return value:

Red, green, and blue
HPColor (cur, max)
Return a suitable color along a gradient indicating health percentage

Parameters

<li>
  cur: The percent of health
</li>

<li>
  max: The maximum percent of health
</li>

Usage:

HPColor(cur, max)

Return value:

Red, green, and blue
HostileColor (unit)
Retrieve a color representing a unit's hostility toward's you

Parameters

<li>
  unit: The unit in question
</li>

Usage:

HostileColor(unit)

Return value:

red, green, and blue [[
PluginColor:RedThroughBlue ()
Retrieve a table representing the colors along a gradient red through blue

Usage:

RedThroughBlue()

Return value:

A table of RGB values
RGB2Black (red, green, blue)
Convert an RGB color into its black-white value

Parameters

<li>
  red: The color's red value
</li>

<li>
  green: The color's green value
</li>

<li>
  blue: The color's blue value
</li>

Usage:

RGB2Black(red, green, blue)

Return value:

A boolean representing the color's black format
RGB2Gray (red, green, blue)
Convert an RGB color into its greyscale value

Parameters

<li>
  red: The color's red value
</li>

<li>
  green: The color's green value
</li>

<li>
  blue: The color's blue value
</li>

Usage:

RGB2Gray(red, green, blue)

Return value:

A value in the range of 0-255 representing the color's grayscale format
RGB2HSV (r, g, b, a)
Returns HSV colorspace values from RGB values

Parameters

<li>
  r: Red value, ranging from 0 to 1
</li>

<li>
  g: Green value, ranging from 0 to 1
</li>

<li>
  b: Blue value, ranging from 0 to 1
</li>

<li>
  a: 
</li>

Usage:

RGB2HSV(r, g, b)

Return value:

Hue, Saturation, and Value values from RGB values
ReputationColor (reaction)
Accessor for FACTION_BAR_COLORS, which is suitable for color reputation values

Parameters

<li>
  reaction: Indicated reaction
</li>

Usage:

ReputationColor(reaction)

Return value:

red, green, and blue [[
ThreatStatusColor (status)
Wraps GetThreatStatus Color

Parameters

<li>
  status: 
</li>

Usage:

ThreatStatusColor(status)

Return value:

Red, green, and blue
ThreatStatusColor (status)
Wraps GetThreatStatus Color

Parameters

<li>
  status: 
</li>

Usage:

ThreatStatusColor(status)

Return value:

Red, green, and blue

Valid XHTML 1.0!

Clone this wiki locally