mirror of
https://github.com/SamEyeBam/animate.git
synced 2026-11-19 10:32:24 +00:00
rgb manipulation optimisation
This commit is contained in:
1 parent
2ac6cd2835
commit
8ef9705499
16 files changed
+90
-89
No files matched your search
@@ -48,7 +48,7 @@ class Countdown extends BaseShape {
|
||||
ctx.fillStyle = "white";
|
||||
ctx.textAlign = "center";
|
||||
|
||||
const futureDate = '2025-06-01T04:30:00';
|
||||
const futureDate = '2026-12-31T04:30:00';
|
||||
const seconds = this.secondsUntilDate(futureDate);
|
||||
const minutes = Math.floor(seconds / 60);
|
||||
const hours = Math.floor(seconds / 3600);
|
||||
|
||||
Reference in new issue
Block a user