src/main.rs

changeset 36
fd878f456591
parent 35
8d26483c4333
--- a/src/main.rs	Thu Nov 07 17:39:40 2024 -0500
+++ b/src/main.rs	Thu Nov 07 12:49:51 2024 -0500
@@ -170,8 +170,8 @@
             .for_each(|(p, v)| {
                 let t = v/m;
                 // A very colourful option for bug hunting.
-                //let rgb = [(50.0*t).cos(), (20.0*t).sin(), (3.0*t).cos()];
-                let rgb = [1.0-t, 1.0-t, 1.0];
+                let rgb = [(50.0*t).cos(), (20.0*t).sin(), (3.0*t).cos()];
+                //let rgb = [1.0-t, 1.0-t, 1.0];
                 *p = Rgb(rgb.map(|v| (v*(u8::RANGE_MAX as f64)) as u8))
             });
 

mercurial