floyd-steinberg-dithering/lib/Dither.dart

18 lines
290 B
Dart

import 'dart:html';
class Dither {
static ImageData editImage(ImageData image) {
// image = contrast( image, 200);
for (var y = 0; y < image.height; y++) {
for (var x = 0; x < image.width; x++) {
// print(image.getPixel(x, y));
}
}
return image;
}
}