So, a while back, I think it was
@Regi who showed some of us on a clan that he likes to highlight some people's names in such a way, that the leftmost character starts off in one color and smoothly moves into another color at the rightmost character. The result was kind of cool, and for a while I've considered writing a general script to do it myself. While looking into it, I found not only RGB gradients, but an HSV and inverse HSV gradient as well, and decided to incorporate those as options. The HSV tends to preserve how intense/bright the colors are in the gradient, while RGB tends to get a little dark.
Source code is here. Just throw it all into a script, then call colorGrad(string, left_color_hex_string, right_color_hex_string, optional_gradient_type). RGB is default, 1 is HSV, 2 is HSV inverse. It returns a string that you plug into hecho. Sorry if it's a little weird, I've been sick and I wrote most of it while I was pretty tired.
Here's what it looks like. RGB, HSV, HSV-inverse, in that order, with different colors I chose mostly at random.
No idea if anyone would actually want it, but it was fun to make.
Comments
YOU'LL BE PRAYING TO THE GODS FOR YOUR EYES BACK ONCE I START POSTING LOGS UP IN HERE>
- Limb Counter - Fracture Relapsing -
"Honestly, I just love that it counts limbs." - Mizik Corten
This is good work, hope lots of people enjoy it.
If there was a way to use it on existing text (the namedb uses selectString), I could probably implement something to allow the usage of arbitrary functions for highlighting.
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof