note about counter-clockwise rotation
This commit is contained in:
parent
04c823c309
commit
226292dcac
@ -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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user