From bd6417f71a41234ff9288c2df203ae319c9edd9a Mon Sep 17 00:00:00 2001 From: Adriaan Wormgoor Date: Sat, 7 Sep 2013 16:09:09 +0200 Subject: [PATCH] minor changes -> slightly more abstracted --- js/previewRendering_v02.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/js/previewRendering_v02.js b/js/previewRendering_v02.js index c09d954..9028751 100644 --- a/js/previewRendering_v02.js +++ b/js/previewRendering_v02.js @@ -37,15 +37,16 @@ function initPreviewRendering() { redrawPreview(); } -//var numLayers = 100; //50 -var numLayers = 100; // 100 +var numLayers = 10; // current number of preview layers +var maxNumLayers= 100; // maximum number of preview layers +var minNumLayers= 2; // minimum number of preview layers var globalScale = 0.3; // global scale of preview (width preview / width canvas) -var globalAlpha = 0.20; // global alpha of preview -var scaleY = 0.4; // additional vertical scale per path for 3d effect -var viewerScale = 0.65; // additional scale to fit into preview nicely (otherwise is fills out totally) -var strokeWidth = 2; //4; +var globalAlpha = 0.20; // global alpha of preview +var scaleY = 0.4; // additional vertical scale per path for 3d effect +var viewerScale = 0.65; // additional scale to fit into preview nicely (otherwise is fills out totally) +var strokeWidth = 2; //4; //var rStep = Math.PI/40; //Math.PI/40; // -var rStep = Math.PI/45; // Math.PI/180; //Math.PI/40; // +var rStep = Math.PI/90; // Math.PI/180; //Math.PI/40; // var yStep;// = preview.height / 150; // 3; //6; //var svgWidth = 500; // 650 //parseInt($(svg).css("width")); //var svgHeight = 450; //450; //parseInt($(svg).css("height"));