Conical Helix
How do I make an conical helix?
Beautiful background gradient from http://codepen.io/Zeaklous/pen/mVEwje - a pen by Zach Saucier. What is a conical helix? How do you make a conical helix? This script and codes were developed by Gabi on 22 August 2022, Monday.
Conical Helix - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Conical Helix</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id="c"></canvas> <script src="js/index.js"></script>
</body>
</html>
Conical Helix - Script Codes CSS Codes
* { margin: 0; padding: 0; overflow: hidden; background: radial-gradient(#B8BEB4, #71685F);
}
Conical Helix - Script Codes JS Codes
var c = document.getElementById("c");
var ctx = c.getContext("2d");
var cw = c.width = window.innerWidth, cx = cw / 2;
var ch = c.height = window.innerHeight, cy = 2 * ch / 3;
var frames = 0;
var requestId = null;
var rad = (Math.PI / 180);
var r = 30, x, y;
function Draw() { frames++; var a = frames * rad; ctx.clearRect(0, 0, cw, ch); for (var i = 1; i < 360; i += .5) { var t = i * rad; ctx.beginPath(); x = cx + r * t * Math.cos(6 * t + a); y = cy + (r / 2) * Math.sin(a) * t * Math.sin(6 * t + a) - (r + r / 2 * (Math.cos(a))) * t; ctx.arc(x, y, i / 21, 0, 2 * Math.PI); ctx.fillStyle = Grd(x, y, i / 21, i * 6, i / 3.6) ctx.fill(); } requestId = window.requestAnimationFrame(Draw);
}
function Grd(x, y, r, hue, l) { grd = ctx.createRadialGradient(x - r / 2, y - r / 2, 0, x, y, r); grd.addColorStop(0, 'hsla(' + hue + ', 99%,' + l + '%,1)'); grd.addColorStop(1, 'hsla(' + hue + ', 99%,' + l + '%, 0.6)'); return grd;
}
var init = function() { if (requestId) { window.cancelAnimationFrame(requestId); requestId = null; } cw = c.width = window.innerWidth, cx = cw / 2; ch = c.height = window.innerHeight, cy = 2 * ch / 3; frames = 0; rad = (Math.PI / 180); r = 30, x, y; Draw();
}
setTimeout(function() { init(); addEventListener('resize', init, false);
}, 15);
Developer | Gabi |
Username | enxaneta |
Uploaded | August 22, 2022 |
Rating | 4.5 |
Size | 2,196 Kb |
Views | 40,480 |
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 |
Some flowers | 3,895 Kb |
Circular trail | 2,363 Kb |
Sea Creature | 3,380 Kb |
Circle decay | 2,638 Kb |
Pastel dots net | 2,415 Kb |
Intersecting Lines | 3,407 Kb |
Flexbox playground | 5,418 Kb |
Circle-Circle Intersection | 3,391 Kb |
Sphere Within Sphere | 4,769 Kb |
Broken English | 4,877 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 |
Pure CSS Torch Light | Juliendargelos | 2,727 Kb |
Css3 only dropdown menu | Riogrande | 2,519 Kb |
CSS Link Icons with jQuery Titles | Nicwinn | 2,312 Kb |
Pure CSS Dial | Lukewatts | 3,018 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
A Different Type of Gallery | DonPage | 2,950 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 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!