Circles
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 - 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
}
Developer | Andy |
Username | Andygirl |
Uploaded | December 26, 2022 |
Rating | 3 |
Size | 1,860 Kb |
Views | 8,096 |
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 |
Todo list | 3,162 Kb |
SelectorsExercise | 3,296 Kb |
CSS tutorial | 2,784 Kb |
FormSolution | 1,615 Kb |
RGB GAME | 3,430 Kb |
Html_table-quiz | 1,547 Kb |
Learning Bootstrap Grid System | 1,934 Kb |
Blog demo to use given styling | 2,412 Kb |
Patatap Clone | 2,725 Kb |
A Pen by Andy | 1,513 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 |
Experiment - SCSS SVG Background Image with Variables | See8ch | 3,270 Kb |
A Pen by Alexandru Pora | Axpro | 1,615 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Em Test | Rodesco | 1,784 Kb |
Break Out | AzazelN28 | 12,431 Kb |
Cool audio | Bigliam | 1,868 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
Spinners using Font Icons | Keyamoon | 3,007 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!