Proper usage of character2
authorAlyssa Rosenzweig <bobbybee@users.noreply.github.com>
Mon, 1 Jun 2015 16:21:32 +0000 (12:21 -0400)
committerAlyssa Rosenzweig <bobbybee@users.noreply.github.com>
Mon, 1 Jun 2015 16:21:32 +0000 (12:21 -0400)
DynImage.js
main.js

index 978e9a8..bb3605e 100644 (file)
@@ -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 (file)
--- 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));
This page took 0.027535 seconds and 4 git commands to generate.