ssb: Color scheme is determined by day/hour/second. Couldn't help it.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 23m19s

This commit is contained in:
Cory McWilliams 2024-12-29 13:55:48 -05:00
parent 1974ed1c03
commit 571cf5b5b8
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🦀",
"previous": "&VAZXXBIeJH6zCSc6o4Za+RetRRZe41VKow+fBrYAIkc=.sha256"
"previous": "&Zm3zI6Q6mbGPnUNj1O07Fc5c71M7pME6AHk/a+pDIoA=.sha256"
}

View File

@ -394,7 +394,13 @@ function is_dark(hex, value) {
}
function generated() {
let k_color = '#034f84';
let now = new Date();
let k_color = rgb_to_hex([
now.getDay() * 255 / 6,
now.getHours() * 255 / 23,
now.getSeconds() * 255 / 59,
]);
//let k_color = '#034f84';
//let k_color = rgb_to_hex([Math.random() * 256, Math.random() * 256, Math.random() * 256]);
let [r, g, b] = hex_to_rgb(k_color);
let [h, s, l] = rgb_to_hsl(r, g, b);