复古抖动图片工具
Dither Me This,Shadowfax Rodeo (doodad.dev),2021 年

正在布展…
它是怎么做的
- 第 1 步把图片画到 canvas 读出像素。
- 第 2 步支持有序抖动(Bayer 矩阵)与误差扩散(Floyd-Steinberg、Atkinson 等)。
- 第 3 步每个像素量化到最近的调色板颜色。
- 第 4 步导出为 PNG,颜色数少因此压缩率高。
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Draw the uploaded image to an offscreen canvas at a chosen pixel scale and read its ImageData. For ordered dithering, add a threshold from a 4x4 or 8x8 Bayer matrix to each pixel before snapping to the nearest palette color. For error diffusion, process pixels left-to-right, snap to the nearest palette color, and distribute the quantization error to neighbors with Floyd–Steinberg or Atkinson weights. Render the result upscaled with pixelated rendering and offer palette presets as small arrays of RGB values.
档案
性能开销
视觉强度
实现难度
尺度为策展判断(1 到 5),用于比较和推荐。
核实记录:doodad.dev/dither-me-this loads (HTTP 200, Nuxt SPA titled 'DOODAD.dev'); repo via gh api: MIT, created 2020-12-19.


