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
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 23m19s
This commit is contained in:
parent
1974ed1c03
commit
571cf5b5b8
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&VAZXXBIeJH6zCSc6o4Za+RetRRZe41VKow+fBrYAIkc=.sha256"
|
"previous": "&Zm3zI6Q6mbGPnUNj1O07Fc5c71M7pME6AHk/a+pDIoA=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -394,7 +394,13 @@ function is_dark(hex, value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function generated() {
|
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 k_color = rgb_to_hex([Math.random() * 256, Math.random() * 256, Math.random() * 256]);
|
||||||
let [r, g, b] = hex_to_rgb(k_color);
|
let [r, g, b] = hex_to_rgb(k_color);
|
||||||
let [h, s, l] = rgb_to_hsl(r, g, b);
|
let [h, s, l] = rgb_to_hsl(r, g, b);
|
||||||
|
Loading…
Reference in New Issue
Block a user