Content
@
0 reply
0 recast
0 reaction
LGHT
@lght.eth
2 replies
3 recasts
22 reactions
MBStuart 🎩 ↑
@stustustudio
let currentNumber; let increment; let lastUpdateTime; function setup() { createCanvas(600, 800); textAlign(CENTER, CENTER); textSize(69); fill(0); // Initialize starting number and increment currentNumber = int(random(1, 1000000)); increment = int(random(1, 21)); lastUpdateTime = millis(); } function draw() { background("#9b8168"); rotate(.03); let textToDisplay = `I HAVE\n${nfc(currentNumber)}\n REASONS\nTO BE HAPPY`; text(textToDisplay, width / 2, height / 2); // Update the number every second if (millis() - lastUpdateTime >= 1000) { currentNumber += increment; lastUpdateTime = millis(); } }
1 reply
0 recast
0 reaction
Joshua Fisher ⌐◨-◨
@joshuafisher.eth
@ingierlingsson Cereal Creator is still one of my faves!
0 reply
0 recast
0 reaction