From 844c86481e621356cf2e22a9d1bea3c06436af0c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 19 Sep 2016 16:32:51 -0400 Subject: [PATCH] Add more particles, remove black color --- .../javascripts/wizard/components/wizard-canvas.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 b/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 index 260485bd2..1f80e2ec4 100644 --- a/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 +++ b/app/assets/javascripts/wizard/components/wizard-canvas.js.es6 @@ -1,10 +1,10 @@ -const MAX_PARTICLES = 100; +const MAX_PARTICLES = 150; const SIZE = 144; let width, height; -const COLORS = ['red', 'black', 'blue', 'purple', 'brown', 'green']; +const COLORS = ['red', 'blue', 'purple', 'brown', 'green']; class Particle { constructor() { @@ -17,7 +17,7 @@ class Particle { this.origX = Math.random() * (width + SIZE); this.speed = 1 + Math.random(); this.ang = Math.random() * 2 * Math.PI; - this.scale = (Math.random() * 0.5); + this.scale = (Math.random() * 0.4) + 0.1; this.radius = (Math.random() * 25) + 25; this.color = COLORS[Math.floor(Math.random() * COLORS.length)]; }