Core Docs | Additional Modules Docs
var y = new sb.widget.colorRandomizer({
numSwatches : 10,
mouseDown : function(e, self){
//do something when the swatch is clicked
if(e.shiftKey){
self.palette.remove();
return;
}
var target = e.target;
document.body.style.backgroundColor = target.style.backgroundColor;
}
});
y.palette.appendTo('#themes');
window.clearInterval(yourInstance.cycler);
yourInstance.palette.appendTo('#themes');