MCPcopy Create free account
hub / github.com/32comic/image2pixel-web / applyFloydSteinbergDithering

Method applyFloydSteinbergDithering

pixelizer.js:814–818  ·  view source on GitHub ↗
(imageData, colorCount)

Source from the content-addressed store, hash-verified

812 }
813
814 applyFloydSteinbergDithering(imageData, colorCount) {
815 // Floyd-Steinberg抖动实现
816 // 这里可以实现抖动算法,当前先保持简单
817 console.log('Floyd-Steinberg dithering applied');
818 }
819
820 showPreview() {
821 if (!this.basePixelCanvas) return;

Callers 1

quantizeColorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected