diff options
Diffstat (limited to 'client/js/image_generator.js')
-rw-r--r-- | client/js/image_generator.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/js/image_generator.js b/client/js/image_generator.js index 81169e1..2b64a5c 100644 --- a/client/js/image_generator.js +++ b/client/js/image_generator.js @@ -94,10 +94,10 @@ function createImage(pixels, hash, what) canvas.width = output_x_y; canvas.height = output_x_y; var context = canvas.getContext('2d'); - var zoom_factor = 5; + var zoom_factor = 6; var zoom_size = Math.floor(output_x_y/zoom_factor); var radius = Math.floor(output_x_y/zoom_size); - debugLog(`Radius: ${radius}`); + // debugLog(`Radius: ${radius}`); for ( var y = 0; y < zoom_size; ++y ) { for ( var x = 0; x < zoom_size; ++x ) @@ -115,9 +115,9 @@ function createImage(pixels, hash, what) for (var k = 0; k < radius; ++k) { var subpixel = pixel_to_be_enhanced; - if ( i >= radius - Math.floor(radius/2) ) + if ( i >= radius - Math.floor(radius/3) ) { - if ( k >= radius - Math.floor(radius/2) ) + if ( k >= radius - Math.floor(radius/3) ) { // debugLog(i); c = (x*radius)+k; |