Crunch Factor Working

This commit is contained in:
Andrew Stephens
2023-01-02 11:32:06 -05:00
parent abb1dffbcc
commit 82ad58d476
2 changed files with 15 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
onmessage = function (e) {
console.log("Worker: start", e.data.imageData)
const result = dither(e.data.imageData, 1)
const result = dither(e.data.imageData, e.data.pixelSize)
const reply = {}
reply.imageData = result
postMessage(reply)