(imageData, colorCount)
| 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; |