From 7102a0a1646e90062dd47c9ad2cff7d1f6370484 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 5 Feb 2016 11:48:34 +0100 Subject: [PATCH] make rainbows --- www/common/rainbow.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 www/common/rainbow.js diff --git a/www/common/rainbow.js b/www/common/rainbow.js new file mode 100644 index 000000000..765b42294 --- /dev/null +++ b/www/common/rainbow.js @@ -0,0 +1,29 @@ +define([], function () { + return function (n) { + var r = 0.6, + n = n || 24, // default is 24 colours + i = 0, + t = [], + rgb = [0,2,4]; + + while(i