summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authors1n <[email protected]>2019-11-05 20:39:19 -0800
committers1n <[email protected]>2019-11-05 20:39:19 -0800
commit0a1ce5a38bc2120f1f1040230bcf8e5a92acca10 (patch)
tree3136207b491f4bf69cc27ceae1ba86ec78d25e40 /js
parentmake br ip detec mobile only (diff)
downloads1n.pw-admin-0a1ce5a38bc2120f1f1040230bcf8e5a92acca10.tar.xz
s1n.pw-admin-0a1ce5a38bc2120f1f1040230bcf8e5a92acca10.zip
add snow and make background sparkles xmas
Diffstat (limited to 'js')
-rw-r--r--js/background-sparkles.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/background-sparkles.js b/js/background-sparkles.js
index caac762..d4690ec 100644
--- a/js/background-sparkles.js
+++ b/js/background-sparkles.js
@@ -12,8 +12,14 @@
var pattern = Trianglify({
height: window.innerHeight, // White: #fdfbfb, Salmon: #cc3300
width: window.innerWidth,
- x_colors: ['#040404', '#f9f9f9', '#fffff4', '#fbf7f5', '#d55454'], // Cappuccino: ['#854442', '#3c2f2f', '#fff4e6', '#be9b7b', '#4b3832']
+ // Christmas Colours:
+ x_colors: ['#0F8A5F', '#f9f9f9', '#fffff4', '#fbf7f5', '#CC231E'], // Cappuccino: ['#854442', '#3c2f2f', '#fff4e6', '#be9b7b', '#4b3832']
y_colors: ['#f9f1f1', '#f9f9f9', '#fffff4', '#fbf7f5', '#f9f1f1'], // Random colour generator: "#"+((1<<24)*Math.random()|0).toString(16)
+ //
+ // Normal Colours:
+ // x_colors: ['#040404', '#f9f9f9', '#fffff4', '#fbf7f5', '#d55454'],
+ // y_colors: ['#f9f1f1', '#f9f9f9', '#fffff4', '#fbf7f5', '#f9f1f1'],
+ //
variance: 10, // Gives it more style
seed: Number.parseInt(Math.floor(Math.random() * 100)), // TODO: Live seed transitioning.
cell_size: 160 // Cell size