aboutsummaryrefslogtreecommitdiff
path: root/client/js/image_generator.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-13 02:00:48 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-13 02:00:48 +0200
commitb7972af4ddc45201861284065a727c44922b952f (patch)
tree068708c45b96083191d778c9edbb9258c525f105 /client/js/image_generator.js
parent8937e4f4a1d5d5d079def0b02a4ce854fef95c6b (diff)
downloadarching-kaos-radio-b7972af4ddc45201861284065a727c44922b952f.tar.gz
arching-kaos-radio-b7972af4ddc45201861284065a727c44922b952f.tar.bz2
arching-kaos-radio-b7972af4ddc45201861284065a727c44922b952f.zip
Updates (visual and refactoring)
Diffstat (limited to 'client/js/image_generator.js')
-rw-r--r--client/js/image_generator.js8
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;