From b7972af4ddc45201861284065a727c44922b952f Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 13 Nov 2024 02:00:48 +0200 Subject: Updates (visual and refactoring) --- client/js/image_generator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/js/image_generator.js') 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; -- cgit v1.2.3