Fibonacci output
How do I make an fibonacci output?
What is a fibonacci output? How do you make a fibonacci output? This script and codes were developed by Wenting Zhang on 07 November 2022, Monday.
Fibonacci output - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>fibonacci output</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id="myCanvas" width="1440" height="768"></canvas> <script src='https://cdnjs.cloudflare.com/ajax/libs/three.js/r77/three.min.js'></script>
<script src='http://davidbau.com/encode/seedrandom.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Fibonacci output - Script Codes CSS Codes
body { margin: 0px; padding: 0px;
}
#myCanvas { background-color: #fff;
}
Fibonacci output - Script Codes JS Codes
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
// i%2
var i = 0;
Math.seedrandom(5);
function fibonacci(a,b){ var result; // do somme math result = a + b; console.log(result); // context.rect(?,?,result,result); var tempColor = new THREE.Color().setHSL(Math.random(), Math.random(), 0.7).getStyle(); context.fillStyle = tempColor; // context.stroke(); if (i%2){ // odd number, when i is 1, 3, 5 context.fillRect(0,b,result,result); } else { // even number, when i is 2, 4, 6 context.fillRect(b,0,result,result); } i++; if ( result < 800) { fibonacci(b, result); }
}
fibonacci(1,1);
// a + b
// 1, 1,
// 1 + 2 = 3
// 2 + 3 = 5
// 3 + 5 = 8
// 5 + 8 = 13
// 8 + 13 = 21;
Developer | Wenting Zhang |
Username | wentin |
Uploaded | November 07, 2022 |
Rating | 3.5 |
Size | 2,014 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Angular directive poc | 3,490 Kb |
P5.js Tail | 1,745 Kb |
100 days of research | 7,754 Kb |
Responsify images | 2,140 Kb |
Underline svg | 1,605 Kb |
Comedy Central Loading SVG | 7,744 Kb |
Algorithmic Animation with Javascript Tail | 2,356 Kb |
A Pen by Wenting Zhang | 1,570 Kb |
Profession.is type transitions | 12,481 Kb |
Shaking mustache | 1,708 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Flying Bee | Pwsm50 | 3,711 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Spin | Elalemanyo | 8,262 Kb |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
Sony Xperia Z3 Flat MockUp | Dapinitial | 4,379 Kb |
Kut D3 | Jellevrswk | 3,687 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
Tree growth tests | Orchard | 3,818 Kb |
Fading gradient button | Insprd | 1,713 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!