Skip to content

Commit

Permalink
Update image-transform.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mmponn authored Dec 24, 2020
1 parent 00b4582 commit 9f7e23b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions image-transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ namespace transformSprites {
for (x = 0; x < toReturn.width; x++) {
for (y = 0; y < toReturn.height; y++) {
toReturn.setPixel(x, y,
sprite.image.getPixel(y, x));
sprite.image.getPixel(y, sprite.image.height - x));
} // for ( y )
} // for ( x )
return toReturn;
Expand All @@ -237,7 +237,6 @@ namespace transformSprites {
for (x = 0; x < toReturn.width; x++) {
for (y = 0; y < toReturn.height; y++) {
toReturn.setPixel(x, y,
//X sprite.image.getPixel(y, sprite.image.height - x));
sprite.image.getPixel(sprite.image.width - y, x));
} // for ( y )
} // for ( x )
Expand Down

0 comments on commit 9f7e23b

Please sign in to comment.