html
html
1
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//Special thanks to Juju Royal for giving suggestion
var n = 30
var $, a = new Array(n), c, T = 0, clr = "0123456789ABCDEF", r = 0, m = -1, arah = 0.01
window.onload = function() {
$ = document.getElementById.bind(document)
c = document.createElement("canvas")
document.body.appendChild(c);
document.body.style.margin = 0
// c.style.backgroundColor = "#000"
c.style.position = "fixed"
c.style.width = "100%"
c.style.height = "100%"
c.width = c.offsetWidth
c.height = c.offsetHeight
for (var i = 0; i < n; i++) {
a[i] = new Object()
a[i].x = c.width / 2
a[i].y = c.height / 2
}
setInterval(draw, 30)
}
function draw() {
T += 1
m += arah;
var ctx = c.getContext("2d")
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run