Hyperstellar
How do I make an hyperstellar?
What is a hyperstellar? How do you make a hyperstellar? This script and codes were developed by Tiffany Rayside on 13 June 2022, Monday.
Hyperstellar - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>hyperstellar</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id='canv'></canvas> <script src="js/index.js"></script>
</body>
</html>
Hyperstellar - Script Codes CSS Codes
body { width: 100%; margin: 0; overflow: hidden;
}
canvas { display: block;
}
Hyperstellar - Script Codes JS Codes
var c = document.getElementById('canv');
var $ = c.getContext('2d');
var u = 0;
var go = function() { var sc, g, g1, i, j, p, x, y, z, w, a, cur, d = new Date() / 1000, rnd = shift(), rnd1 = d, rnd2 = 2.4, rnd3 = d * 0.2, rnd1c = Math.cos(rnd1), rnd1s = Math.sin(rnd1), rnd2c = Math.cos(rnd2), rnd2s = Math.sin(rnd2); c.width = window.innerWidth; c.height = window.innerHeight; sc = Math.max(c.width, c.height); $.translate(c.width * 0.5, c.height * 0.5); $.scale(sc, sc); g = $.createLinearGradient(-1, -2, 1, 2); g.addColorStop(0.0, 'hsla(338, 95%, 25%, 1)'); g.addColorStop(0.5, 'hsla(260, 95%, 5%, 1)'); g.addColorStop(1.0, 'hsla(338, 95%, 30%, 1)'); $.fillStyle = g; $.fillRect(-0.5, -0.5, 1, 1); $.globalCompositeOperation = 'lighter'; $.rotate(rnd3 % Math.PI * 2); for (i = 0; i < 300; i += 1) { p = rnd(); x = (p & 0xff) / 128 - 1; y = (p >>> 8 & 0xff) / 128 - 1; z = (p >>> 16 & 0xff) / 128 - 1; w = (p >>> 24 & 0xff) / 256; z += d * 0.5; z = (z + 1) % 2 - 1; a = (z + 1) * 0.5; if (a < 0.9) { $.globalAlpha = a / 0.7; }else { a -= 0.9; $.globalAlpha = 1 - a / 0.1; } cur = x * rnd1c + y * rnd1s; y = x * rnd1s - y * rnd1c; x = cur; cur = y * rnd2c + z * rnd2s; z = y * rnd2s - z * rnd2c; y = cur; z -= 0.65; if (z >= 0) { continue; } sc = 0.1 / z; x *= sc; y *= sc; $.save(); g1 = $.createRadialGradient(1, 1, 2, 1, 1, 1); g1.addColorStop(0.0, 'hsla('+i+', 70%, 40%,.8)'); g1.addColorStop(0.5, 'hsla('+i+', 75%, 50%, 1)'); g1.addColorStop(1.0, 'hsla('+i+', 80%, 60%, .8)'); $.fillStyle = g1; $.translate(x, y); $.scale(sc * 0.017, sc * 0.017); $.beginPath(); $.moveTo(2, 0); for (j = 0; j < 10; j += 1) { $.rotate(Math.PI*2 * 0.1); $.lineTo(j % 2 + 1, 0); } $.arc(10, 10, 1, 0, Math.PI * 2); $.rotate(Math.PI * 2 * 0.1); $.closePath(); $.fill(); $.restore(); }
};
/*
Marsaglia's Xorshift128 PRG: http://en.wikipedia.org/wiki/Xorshift
*/
var shift = function(x, y, z, w) { x = x || 123456789; y = y || 362436069; z = z || 521288629; w = w || 88675123; return function() { var s = x ^ (x << 11); x = y; y = z; z = w; w = (w ^ (w >>> 19)) ^ (s ^ (s >>> 8)); return w; };
}
window.addEventListener('resize', function() { c.width = window.innerWidth; c.height = window.innerHeight;
}, false);
var run = function() { window.requestAnimationFrame(run); go();
}
run();
console.log('With ❤ Always, @tmrDevelops');
Developer | Tiffany Rayside |
Username | tmrDevelops |
Uploaded | June 13, 2022 |
Rating | 4.5 |
Size | 2,872 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 |
Galactic Orbitals | 2,428 Kb |
LED Marquee | 3,769 Kb |
Retro Fractal | 2,685 Kb |
Enchanted | 2,861 Kb |
Saltus | 2,718 Kb |
Moirai | 2,855 Kb |
Labyrinth | 3,387 Kb |
Psychotomimetic | 2,314 Kb |
Spider Spring | 3,375 Kb |
BloodClot Red | 2,651 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 |
Popup Modal | Aldlevine | 3,696 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Retina canvas w. resize | Erikterwan | 1,882 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
APortfolio | Skybutterfly | 5,174 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Apex Calculator | Michaelwnelson | 2,370 Kb |
Nice textured background | Hans | 2,659 Kb |
Search Box in Content Moves to Fixed Header | Chriscoyier | 2,768 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 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!