 		curr = 0 if curr >= args.length
 		return args[curr]
 
+# Backwards compatibility
+exports.toggle = exports.cycle
 
 # Public: Returns a String containing a color in rgba(...) format.
 #

_ = require "underscore"

Function::define = (prop, desc) ->
	Object.defineProperty @prototype, prop, desc

# Returns a Timer
#
exports.interval = (time, f) ->
	timer = setInterval f, time * config.timeSpeedFactor
	window._delayIntervals ?= []
	window._delayIntervals.push timer
	return timer
