From 226292dcac0f0c643ccf1d9cd0d9cb2e3059d817 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 20 Jul 2020 15:10:03 +0100 Subject: [PATCH] note about counter-clockwise rotation --- src/image.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/image.rs b/src/image.rs index 152b978..47f3adf 100644 --- a/src/image.rs +++ b/src/image.rs @@ -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]);