mirror of
https://github.com/andrewstephens75/as-dithered-image.git
synced 2026-04-14 12:29:30 -07:00
Crunch Factor Working
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user