From d8fad6ad0a4bf6bb1d1294dde5be10edbeca3b86 Mon Sep 17 00:00:00 2001
From: mehbark <terezi@pyrope.net>
Date: Mon, 10 Mar 2025 21:37:37 -0400
Subject: [PATCH] lol using scaled looks worse

---
 src/main.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index cc01f78..14af16a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -56,12 +56,14 @@ fn main() {
             let (x, y) = pos_to_sample(ix, iy);
             let i = expr.eval(x, y);
             let scaled = i / (max - min);
-            let channel = (i * 256.0) as u8;
+            let channel = (scaled * 256.0) as u8;
             put_pixel(channel, channel, channel);
             put_pixel(channel, channel, channel);
         }
         println!();
     }
+    // reset style
+    print!("\x1b[0m")
 }
 
 fn put_pixel(r: u8, g: u8, b: u8) {