-
Notifications
You must be signed in to change notification settings - Fork 0
PluginColor
Starlon edited this page Nov 30, 2011
·
4 revisions
<tr>
<td class="name" nowrap><a href="#AggroColor">AggroColor</a> (unit, The)</td>
<td class="summary">Wraps UnitSelectionColor </td>
</tr>
<tr>
<td class="name" nowrap><a href="#BgColor">BgColor</a> (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> (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> (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> (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> (perc)</td>
<td class="summary">This comes from oUF.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#HPColor">HPColor</a> (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> (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> ()</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> (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> (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> (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> (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> (status)</td>
<td class="summary">Wraps GetThreatStatus Color </td>
</tr>
<tr>
<td class="name" nowrap><a href="#ThreatStatusColor">ThreatStatusColor</a> (status)</td>
<td class="summary">Wraps GetThreatStatus Color </td>
</tr>
- AggroColor (unit, The)
-
Wraps UnitSelectionColor
AggroColor(unit) Red, green, and blue [[
<li> unit: </li> <li> The: unit in question </li> - BgColor (r, g, b)
-
Convert an RGB expression into a suitable color for a background behind the RGB value. This is part of LuaTexts.
BgColor(r, g, b) Red, green, and blue representing the new background color
<li> r: The color's red value </li> <li> g: The color's green value </li> <li> b: The color's blue value </li> - ClassColor (unit)
-
Retrieve a color suitable to color a unit's class value
ClassColor(unit) red, green, and blue [[
<li> unit: The unit in question </li> - ColorBrightest (col1, col2)
-
Determine and return the brightest of 2 32bit colors. The alpha channel is ignored.
ColorBrighest(color1, color2) The brighest of the two colors is returned.
<li> col1: The first color to compare. </li> <li> col2: The second color to compare. </li> - Colorize (str, r, g, b)
-
Retrieve a string suitable to insert a texture within a fonstring
Colorize(str, r, g, b) A colorized string suitable to insert in a fonstring [[
<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> - GradientHealth (perc)
-
This comes from oUF. Trivial, but I like to give credit where credit is due.
Gradient(perc) Red, green, and blue
<li> perc: A value between 0 and 1 -- The position within the gradient </li> - HPColor (cur, max)
-
Return a suitable color along a gradient indicating health percentage
HPColor(cur, max) Red, green, and blue
<li> cur: The percent of health </li> <li> max: The maximum percent of health </li> - HostileColor (unit)
-
Retrieve a color representing a unit's hostility toward's you
HostileColor(unit) red, green, and blue [[
<li> unit: The unit in question </li> - PluginColor:RedThroughBlue ()
- Retrieve a table representing the colors along a gradient red through blue RedThroughBlue() A table of RGB values
- RGB2Black (red, green, blue)
-
Convert an RGB color into its black-white value
RGB2Black(red, green, blue) A boolean representing the color's black format
<li> red: The color's red value </li> <li> green: The color's green value </li> <li> blue: The color's blue value </li> - RGB2Gray (red, green, blue)
-
Convert an RGB color into its greyscale value
RGB2Gray(red, green, blue) A value in the range of 0-255 representing the color's grayscale format
<li> red: The color's red value </li> <li> green: The color's green value </li> <li> blue: The color's blue value </li> - RGB2HSV (r, g, b, a)
-
Returns HSV colorspace values from RGB values
RGB2HSV(r, g, b) Hue, Saturation, and Value values from RGB values
<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> - ReputationColor (reaction)
-
Accessor for FACTION_BAR_COLORS, which is suitable for color reputation values
ReputationColor(reaction) red, green, and blue [[
<li> reaction: Indicated reaction </li> - ThreatStatusColor (status)
-
Wraps GetThreatStatus Color
ThreatStatusColor(status) Red, green, and blue
<li> status: </li> - ThreatStatusColor (status)
-
Wraps GetThreatStatus Color
ThreatStatusColor(status) Red, green, and blue
<li> status: </li>