paint-by-numbers

Relaxing paint-by-numbers game  https://p.ce9e.org/paint-by-numbers/
git clone https://git.ce9e.org/paint-by-numbers.git

commit
60e5d8242e5370dbc714eb52b3add073d5f586de
parent
e99cbfcb027a5cf23fc9351dd8c5b026beb95505
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-02-13 04:40
change default size

Diffstat

M paint.js 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/paint.js b/paint.js

@@ -125,7 +125,7 @@ var setPixel = function(x, y, color) {
  125   125 input.addEventListener('change', () => {
  126   126     file2img(input.files[0]).then(img => {
  127   127         // FIXME: configurable size
  128    -1         data = analyze(img2data(img, 100 / img.width));
   -1   128         data = analyze(img2data(img, 80 / img.width));
  129   129         offcanvas.width = data.width * pxsize;
  130   130         offcanvas.height = data.height * pxsize;
  131   131         octx.textAlign = 'center';