Circle Fractal
How do I make an circle fractal?
What is a circle fractal? How do you make a circle fractal? This script and codes were developed by Johan Karlsson on 26 July 2022, Tuesday.
Circle Fractal - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Circle Fractal</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src='https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.6/p5.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Circle Fractal - Script Codes CSS Codes
html, body { margin: 0;
}
canvas { display: block;
}
Circle Fractal - Script Codes JS Codes
"use strict";
var colors;
function setup() { // Colors from this scheme generator: // http://codepen.io/_emattiazzi/pen/egPpdy colors = ["#D1AF3E", "#164461", "#611834", "#6A588B", "#92F5CC"]; createCanvas(windowWidth, windowHeight);
}
function draw() { background(0); var x = windowWidth / 2; var y = windowHeight / 2; drawCircle(x, y, 7);
}
function drawCircle(x, y, level) { if (level === 0) return; push(); translate(x, y); rotate(PI / 4 + frameCount / 100); var index = level % colors.length; var color = colors[index]; fill(color); var factor = 20; var size = level * factor; ellipse(0, 0, size, size); drawCircle(-level * factor * 0.85, 0, level - 1); drawCircle(level * factor * 0.85, 0, level - 1); pop();
}
function windowResized() { resizeCanvas(windowWidth, windowHeight);
}
Developer | Johan Karlsson |
Username | DonKarlssonSan |
Uploaded | July 26, 2022 |
Rating | 4.5 |
Size | 2,482 Kb |
Views | 36,432 |
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 |
Laser Writer | 6,065 Kb |
The Rainbow Spirograph | 4,016 Kb |
Brownian Gnats | 2,822 Kb |
SoundCloud Music Visualizer | 4,211 Kb |
Rainbow 6-fold Pentille | 4,311 Kb |
Fireflies | 2,572 Kb |
Photobooth - Webcam with realtime CSS filters. | 4,390 Kb |
In Tribute to Simon Plouffe | 2,376 Kb |
Cash by Brownian Motion | 3,530 Kb |
Rotating Neon Curves | 3,770 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 |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
FontAwesome icons with animation | Nicotinell | 2,083 Kb |
Click handler test | Snapson | 2,329 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 Kb |
Virtual vinyl | Davidpanik | 3,474 Kb |
RAQuote | Naderk007 | 4,412 Kb |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Navcube | Wbarlow | 4,775 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!