aboutsummaryrefslogtreecommitdiff
path: root/entries/Mari/fib.js
diff options
context:
space:
mode:
authorthemaskedtaquito2022-11-16 19:25:40 +0000
committerGitHub2022-11-16 19:25:40 +0000
commit4bbc71a1e855d967d72e2d0aa1c9b699fe1be55a (patch)
tree983f3f01efacb5901c07886efbca3f41f944887c /entries/Mari/fib.js
parentfaae5d90f956f20e34d02bee80d53fc7eafa623f (diff)
Delete entries/Mari directory
Diffstat (limited to 'entries/Mari/fib.js')
-rw-r--r--entries/Mari/fib.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/entries/Mari/fib.js b/entries/Mari/fib.js
deleted file mode 100644
index 6708630..0000000
--- a/entries/Mari/fib.js
+++ /dev/null
@@ -1,26 +0,0 @@
-//p5.js
-
-let fib1 = 0;
-let fib2 = 1;
-let loopNumber = 1;
-function setup() {
- createCanvas(600, 600);
- frameRate(3);
-}
-
-function draw() {
- background(220);
- fill('#'+str(hex(fib2)));
- noStroke();
- rect(50,70,500,500);
- textSize(20);
- text('#'+str(hex(fib2)),53,57);
- fill(0);
- text('Fibonacci ' +str(loopNumber) + ': '+ str(fib2),200,57);
- fib2 = fib1 + fib2;
- fib1 = fib2 - fib1;
- loopNumber +=1;
- if(fib2>420196140727489660){
- noLoop();
- }
-} \ No newline at end of file