Originally Posted by humfras
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.