Board Thread:General Coding Help/@comment-10696822-20170423041010

I am planning on creating a Gradient Generator script and I was trying to create a color palette from a certain hex triplet. However, the functions were returning the resulting hex triplets (which is in an array) incorrectly (meaning that the hexadecimal number has 8 characters instead of the appropriate 6). Do you have any suggestions? Note: I know that the script is unfinished and I might need a little assistance.

Script: http://htmlcss.wikia.com/wiki/MediaWiki:Wikia.js/gradient-generator.js 