Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 0
- b = 0
- c = 0
- e = "0"
- function update() {
- b++
- if (b%7 == 0) {
- cursor.x = -99
- cursor.y = 8
- for (let i = 0; i < e.length; i++) {
- writeChar(" ", 1)
- }
- a = a + 1/8
- c = a*Math.log(a)/30
- if (c < 21) {
- e = (Math.floor(10**c)).toString()
- } else {
- e = (Math.floor(10**(c%1) * 10**18) / 10**18).toString() + "e+" + (Math.floor(c)).toString()
- }
- cursor.x = -99
- cursor.y = 8
- for (let i = 0; i < e.length; i++) {
- writeChar(e[i], 1)
- }
- }
- requestAnimationFrame(update)
- }
- requestAnimationFrame(update)
- w.on("msg", (data) => {
- if (data.msg == "a" && data.nick == "CalculatorBot") {
- a = 0
- }
- });
Advertisement