forked from cory/tildefriends
		
	ssb: Color scheme is determined by day/hour/second. Couldn't help it.
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user