We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 240dbc3 commit 39ecb1fCopy full SHA for 39ecb1f
scripty-bipty.js
@@ -6,12 +6,12 @@ canvas.height = window.innerHeight;
6
//draws pretty stars for the background!
7
function getRandom(min, max) {
8
return Math.floor(Math.random() * (max - min + 1)) + min;
9
-}
10
- var canvas = document.getElementById("starfield"),
11
- context = canvas.getContext("2d"),
12
- stars = 500,
13
- colorrange = [0,60,240];
14
- for (var i = 0; i < stars; i++) {
+}
+var canvas = document.getElementById("starfield"),
+context = canvas.getContext("2d"),
+stars = 500,
+colorrange = [0,60,240];
+for (var i = 0; i < stars; i++) {
15
var x = Math.random() * canvas.offsetWidth;
16
y = Math.random() * canvas.offsetHeight,
17
radius = Math.random() * 1.2,
0 commit comments