Random Astroids

Developer
Size
1,792 Kb
Views
6,072

How do I make an random astroids?

What is a random astroids? How do you make a random astroids? This script and codes were developed by Luuk Lamers on 22 January 2023, Sunday.

Random Astroids Previews

Random Astroids - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Random Astroids</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
</head>
<body> <script src="js/index.js"></script>
</body>
</html>

Random Astroids - Script Codes JS Codes

var r = 50;
var offset = 10;
var part = (2 * Math.PI) / 36;
function draw(){	var SVGString = '';	for(var i = 1; i < 36; i++) {	var x = r + offset + Math.cos(part * i) * r * ((Math.random()/10)+1);	var y = r + offset + Math.sin(part * i) * r * ((Math.random()/10)+1);	if(i == 1){	SVGString += 'M'+x+','+y+' ';	}	SVGString += 'L'+x+','+y+' ';	}	SVGString += 'Z';	document.write("<svg width='120' viewBox='0 0 120 120'><path d='"+SVGString+"' fill='#eee' stroke='black' stroke-width='4'><animateTransform attributeName='transform' attributeType='XML' type='rotate' from='0 60 60' to='360 60 60' dur='10s' repeatCount='indefinite'/></path></svg>");
}
for(var i = 0;i < 200; i++) {	draw();
}
Random Astroids - Script Codes
Random Astroids - Script Codes
Home Page Home
Developer Luuk Lamers
Username xaddict
Uploaded January 22, 2023
Rating 3
Size 1,792 Kb
Views 6,072
Do you need developer help for Random Astroids?

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!

Luuk Lamers (xaddict) Script Codes
Create amazing video scripts 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!