mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-11 18:47:13 +01:00
17 lines
285 B
JavaScript
17 lines
285 B
JavaScript
/*
|
|
* right to left
|
|
* forward
|
|
* bands
|
|
*/
|
|
|
|
var bandY = 0;
|
|
|
|
do {
|
|
for (var x = image.width - 1; x >= 0; x--) {
|
|
for (var y = 0; y < image.bandSize; y++) {
|
|
image.addPoint(x, bandY + y);
|
|
}
|
|
}
|
|
bandY += image.bandSize;
|
|
} while (bandY < image.height);
|