From: Alyssa Rosenzweig Date: Mon, 1 Jun 2015 16:21:32 +0000 (-0400) Subject: Proper usage of character2 X-Git-Url: https://rosenzweig.io/git/?p=Dynartic.git;a=commitdiff_plain;h=932f922cb4f58a2a3c96f071681987e615007250 Proper usage of character2 --- diff --git a/DynImage.js b/DynImage.js index 978e9a8..bb3605e 100644 --- a/DynImage.js +++ b/DynImage.js @@ -129,7 +129,7 @@ DynImage.prototype.character2 = function(width, height) { for(var x = 0; x < width; ++x) { for(var y = 0; y < height; ++y) { var color = this.getColor(x, y); - var mod = 150; + var mod = 110 + Math.floor(Math.random() * 40); var mult = Math.ceil(Math.random() * 120); this.setColor(x, y, diff --git a/main.js b/main.js index 7c989c4..6b854ba 100644 --- a/main.js +++ b/main.js @@ -33,7 +33,8 @@ function pretty(name, ired, igreen, iblue, ringConstant, stainConstant, stainSiz dynimage.punchWave(width / 2, height / 2, width * stainSize, height * stainSize, Math.floor(stainConstant), width / 3, waveConstant); - //dynimage.pointRing(width / 2, height / 2, width, ringConstant, intensityConstant); + dynimage.character2(width, height); + dynimage.pointRing(width / 2, height / 2, width, ringConstant, intensityConstant); dynimage.character2(width, height); dynimage.recontrast(contrastThreshold, Math.floor(Math.random() * 60));