From d67f7095d4d3f061431d9ec88996cda0e9b00267 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 13 Feb 2015 12:41:40 -0500 Subject: adding hues --- js/util.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/util.js') diff --git a/js/util.js b/js/util.js index 91055f9..81e8f60 100644 --- a/js/util.js +++ b/js/util.js @@ -115,6 +115,10 @@ function weave(a){ reverse(aa[1]).forEach(function(el){ b.push(el) }) return b } +function cssRule (selector, declaration) { + var x = document.styleSheets, y = x.length-1; + x[y].insertRule(selector+"{"+declaration+"}", x[y].cssRules.length); +} // easing functions function circular (t) { return Math.sqrt( 1 - ( --t * t ) ) } -- cgit v1.2.3-70-g09d2