mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-25 01:16:58 +01:00
17 lines
285 B
JavaScript
17 lines
285 B
JavaScript
/*
|
|
* bottom to top
|
|
* forward
|
|
* bands
|
|
*/
|
|
|
|
var bandX = 0;
|
|
|
|
do {
|
|
for (var y = image.height - 1; y >= 0; y--) {
|
|
for (var x = 0; x < image.bandSize; x++) {
|
|
image.addPoint(bandX + x, y);
|
|
}
|
|
}
|
|
bandX += image.bandSize;
|
|
} while (bandX < image.width);
|