Closed VxJasonxV closed 9 years ago
I suspect this doesn't actually work because it's not getting rid of the #
. Again, I'm not sure of how to test this :).
Just have to slice out the #
, I believe. Did that in 33bfab986aca0283ac3382fa7f866207e504dd34.
Function adapted from http://www.sitepoint.com/javascript-generate-lighter-darker-color/ , I presume that 50% lighter is a good starting point ( the 0.5 in https://github.com/VxJasonxV/avalonstar-live/blob/5c1dffeed145be2d42f317bf6e07b5106a12466e/app/models/message.coffee#L27 ), but it definitely needs to be evaluated, and I have no idea what the best way to accomplish that is.
coffeelint isn't complaining, but that doesn't mean much.