summaryrefslogtreecommitdiffstats
path: root/public/braille.js
diff options
context:
space:
mode:
authorDante Catalfamo2020-07-03 16:29:54 -0400
committerDante Catalfamo2020-07-03 16:29:54 -0400
commitc9a48c8fefc001f622337cc235c349f8802263ff (patch)
tree48ede0abd0b44d3186ff66a0fa423cc2e3e2d891 /public/braille.js
parent5384d0dc9f549a243f9e9825bdab6f8e8a68fc27 (diff)
downloadhomepage-c9a48c8fefc001f622337cc235c349f8802263ff.tar.gz
homepage-c9a48c8fefc001f622337cc235c349f8802263ff.tar.bz2
homepage-c9a48c8fefc001f622337cc235c349f8802263ff.zip
Add colour to braille chars
Diffstat (limited to 'public/braille.js')
-rw-r--r--public/braille.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/braille.js b/public/braille.js
index fe81c6e..956b42a 100644
--- a/public/braille.js
+++ b/public/braille.js
@@ -64,4 +64,5 @@ const br = document.getElementById("braille");
let frame = HEIGHT;
const interval = setInterval(() => {
br.innerHTML = renderFunction(board, fun, frame++);
+ br.style = `color: hsl(${frame*2%360}, 100%, 65%)`;
}, 50);