Circles

Developer
Size
1,860 Kb
Views
8,096

How do I make an circles?

This pen is to learn how to use paper.js in preparation for a Patatap clone. Also played with gradients to see how they worked for each circle.. What is a circles? How do you make a circles? This script and codes were developed by Andy on 26 December 2022, Monday.

Circles Previews

Circles - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Circles</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>
<head>	<title>Circles</title>	<script type="text/javascript" src="paper-full.js"></script>	<link rel="stylesheet" type="text/css" href="circles.css">	<script type="text/paperscript" canvas="myCanvas">	for (var x = 0; x < 1000; x+= 100){	for(var y = 0; y < 1000; y+= 100){	var myCircle = new Path.Circle(new Point(x, y), 20);	myCircle.fillColor = { gradient: { stops: [['yellow', 0.05], ['red', 0.2], ['black', 1]], radial: true }, origin: myCircle.position, destination: myCircle.bounds.rightCenter
};	}
}
</script>
</head>
<body>
<canvas id="myCanvas" resize></canvas>
</body>
</html> <script src='https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.10.3/paper-full.min.js'></script>
</body>
</html>

Circles - Script Codes CSS Codes

canvas {	width: 100%;	background: black;
}
body, html { /*this sets canvas to be full size on the screen by making body take up full screen*/	height: 100%;	margin: 0
}
Circles - Script Codes
Circles - Script Codes
Home Page Home
Developer Andy
Username Andygirl
Uploaded December 26, 2022
Rating 3
Size 1,860 Kb
Views 8,096
Do you need developer help for Circles?

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!

Andy (Andygirl) Script Codes
Create amazing art & images 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!