From cab098de09198fe00eec76756f3f40def1bc316f Mon Sep 17 00:00:00 2001 From: Micho Date: Mon, 20 May 2013 18:58:05 +0200 Subject: [PATCH] minor adjustments --- clients/anim/main.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/clients/anim/main.js b/clients/anim/main.js index 6ff8c50..2395dd8 100644 --- a/clients/anim/main.js +++ b/clients/anim/main.js @@ -1,12 +1,12 @@ var currentTime = 60*(24*1+10.4); var clients = []; var context; -var width = 1024; +var width = 980; var height = 500; var gridSize = 3; var nearFieldRadius = 30; -var timeStep = 0.2; +var timeStep = 0.5; var decay = Math.pow(0.8, 1/timeStep); var stepSize = 50*timeStep; var frameDuration = 40; @@ -26,8 +26,8 @@ for (var x = -nearFieldGridRadius; x < width/gridSize+nearFieldGridRadius; x++) $(function () { init(); - start(); - setTimeout(stop, 60000); + //start(); + //setTimeout(stop, 60000); }) function init() { @@ -38,6 +38,7 @@ function init() { random[index] = Math.random(); }); + /* var menu = $('#menu'); for (var i = 2; i < 16; i++) { (function () { @@ -57,6 +58,7 @@ function init() { var node = $('Stop'); node.click(stop); menu.append(node); + */ var index = -1; for (var time = -60; time <= (4*24+1)*60; time++) { @@ -315,7 +317,7 @@ function renderCanvas() { var r = Math.sqrt(dx*dx + dy*dy); if (r > 1) { - var a = Math.min(Math.pow(1/r, 0.8), 1); + var a = Math.min(Math.pow(1/r, 0.7), 1); context.strokeStyle = 'rgba(0,0,0,'+a+')'; context.lineWidth = client.r*2*radius; context.beginPath();