Pi66

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

← back to log

feat: add method to lighten color toward white

author: pixel2175
date: 2025-06-24 01:34
hash: 28477e2c0918bafa2bc33621d3a714dcdbe950b1

Diffstat:

M

src/get_colors.rs
7 ------------------------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/get_colors.rs b/src/get_colors.rs
index 481b4ed..10ebe2b 100644
--- a/src/get_colors.rs
+++ b/src/get_colors.rs
@@ -149,15 +149,8 @@ pub fn get_colors(

     let (mut r, mut g, mut b) = collect_rgb[20];
     (r, g, b) = adjust_rgb(r, g, b, 40, 60);
-    println!("before: #{:02x}{:02x}{:02x}", r, g, b);
     (r, g, b) = to_gray(r, g, b, 0.4);
-    println!("after : #{:02x}{:02x}{:02x}", r, g, b);
     done[7] = (r, g, b);
     done[15] = (r, g, b);
-    //
-    // for color in &done {
-    //     println!("#{:02x}{:02x}{:02x}", color.0, color.1, color.2,)
-    // }
-    //
     (done, *alpha)
 }