(x)
| 343 | } |
| 344 | |
| 345 | function smootheststep(x) { |
| 346 | let y = -20 * Math.pow(x, 7) |
| 347 | y += 70 * Math.pow(x, 6) |
| 348 | y -= 84 * Math.pow(x, 5) |
| 349 | y += 35 * Math.pow(x, 4) |
| 350 | return y |
| 351 | } |
| 352 | function getCurrentTime() { |
| 353 | const now = new Date() |
| 354 | let hours = now.getHours() |