Thread Tools Display Modes
01-08-14, 01:37 PM   #1
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
CursorCastBar is using a gradient function similar to yours.

The advantage of the extended function is that it will deviate between 3 given colors rather than simply green/yellow/red.
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
01-08-14, 02:34 PM   #2
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Originally Posted by humfras View Post
CursorCastBar is using a gradient function similar to yours.

The advantage of the extended function is that it will deviate between 3 given colors rather than simply green/yellow/red.
Yeah absolutely. I had just wanted to put this out there for people who would like to use a colour gradient function relatively often in their code where the only 'scope' needed was green through yellow through red.

It's cleaner and bound to run faster... not much faster I bet, but faster all the same which is going to be essential if it's getting called for AURA events or OnUpdate (when required for a fluid change between gradients) etc.

Health status bars or timers for example.
__________________
__________________
  Reply With Quote
02-07-14, 04:27 AM   #3
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Just wanted to point to another thread that had a similar idea:

http://www.wowinterface.com/forums/s...ad.php?t=48236

Here we came to a completed addon that creates a very smooth transition from one color to another in the shortest possible way.

Zork being awesome came up with this: ColorSmudge
  Reply With Quote

WoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » User-created Colour Gradient function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off