This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// startHex: starting hex value | |
// endHex: ending hex value | |
// numStops: number of equally spaced color stops INCLUDING start/end | |
function getGradientStops(startHex, endHex, numStops) { | |
function getSingleColorStops(startHex, endHex, numStops) { | |
var stops = [startHex], | |
// Get start/end in decimal | |
startDec = parseInt(startHex, 16), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Alias to setTimeout that reverses the parameters, making it much cleaner in code | |
# | |
delay = (time, callback) -> setTimeout(callback, time) | |
# | |
# SETUP VARS | |
# | |
eventSearch = "#puppy" | |
refreshSpeed = 5000 |