Fan Loader

Size
2,190 Kb
Views
28,336

How do I make an fan loader?

What is a fan loader? How do you make a fan loader? This script and codes were developed by Tina Anastopoulos on 31 August 2022, Wednesday.

Fan Loader Previews

Fan Loader - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fan Loader</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src='https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Fan Loader - Script Codes CSS Codes

body { margin: 0; padding: 0; background: #141414; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}

Fan Loader - Script Codes JS Codes

var t,	theta,	numb = 4,	maxFrameCount = 100,	a = 31,	b = 7;
function setup() { createCanvas(540, 540); noFill(); strokeWeight(3); frameRate(30);
}
function draw() {	background(20); translate(width/2, height/2); t = frameCount/maxFrameCount; theta = TWO_PI*t; for ( var x= 0; x <= 300; x += 15) { for (var i = 0; i < numb-1; i++) { var rot = TWO_PI/numb*i; var offSet = (i*b)+(x*a); var sz1 = map(cos(-(theta)+offSet), 0, 1, 90, 60); var sz2 = map(sin(-(theta)+offSet), 0, 1, 60, 90); stroke(160-(x/3), 150-(x/2), 105+(x/3)); rotate(rot); arc(0, 0, x, x, radians(sz2), radians(sz1)); } }
}
Fan Loader - Script Codes
Fan Loader - Script Codes
Home Page Home
Developer Tina Anastopoulos
Username TWAIN
Uploaded August 31, 2022
Rating 4
Size 2,190 Kb
Views 28,336
Do you need developer help for Fan Loader?

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!

Tina Anastopoulos (TWAIN) Script Codes
Create amazing sales emails with AI!

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!