Pi66

walrs
pywal but if its Fast-Minimal-Simple
git clone https://git.pi66.xyz/walrs

← back to log

make colors more pretty 01

author: pixel2175
date: 2025-06-01 02:26
hash: ff44c693c5991aae9208df7962d8a6a3928704f1

Diffstat:

M

src/get_colors.rs
9 ++++++++++++++++++++----------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/src/get_colors.rs b/src/get_colors.rs
index 6b04670..d26d267 100644
--- a/src/get_colors.rs
+++ b/src/get_colors.rs
@@ -179,17 +179,20 @@ pub fn get_colors(
             r,
             g,
             b,
-            brightness.unwrap_or(0) - 15,
+            brightness.unwrap_or(0) - 5,
             saturation.unwrap_or(0) + 80,
         );
         done.push((r, g, b));
     }

     let (mut r, mut g, mut b) = collect_rgb[20];
-    (r, g, b) = adjust_rgb(r, g, b, 40, 60);
-    (r, g, b) = to_gray(r, g, b, 15);
+    (r, g, b) = adjust_rgb(r, g, b, 45, 65);
+    (r, g, b) = to_gray(r, g, b, 25);
     done[7] = (r, g, b);
     done[15] = (r, g, b);

+    for (r, g, b) in &done {
+        println!("#{:02x}{:02x}{:02x}", r, g, b)
+    }
     (done, *alpha)
 }