Colourify: My (Probably) Useless Javascript Gradient Algorithm

Hey guys!  Long time no post.  A few months back I was coding a small unrelated project when I got somewhat bored and noticed I had a page with a lot of black text that wasn’t really doing much of anything.  Suddenly I had this idea in my head: Why not give the text a pretty gradient colour scheme?  It could even follow your mouse when you hover your text over it!

So that’s exactly what I did.  I borrowed some RGB/Hex conversion math from the internets and spent about an hour coding a totally useless algorithm that gives your text a gradient colour scheme that follows the mouse on hover.  Cool, huh?

Check the demo here: http://www.miracleblue.com/colourify.html


Leave a Reply