note about counter-clockwise rotation

This commit is contained in:
Max Bradbury 2020-07-20 15:10:03 +01:00
parent 04c823c309
commit 226292dcac
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ impl Image {
// start from bottom-left corner, work upward in that column,
// then work on the next column to the right
// for counter-clockwise, just reverse x instead of y
for x in 0..8 {
for y in (0..8).rev() {
pixels.push(self.pixels[(y * 8) + x]);