Tiles nr.2
How do I make an tiles nr.2?
What is a tiles nr.2? How do you make a tiles nr.2? This script and codes were developed by Pogany on 09 November 2022, Wednesday.
Tiles nr.2 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>tiles nr.2</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id="canvas"></canvas> <script src="js/index.js"></script>
</body>
</html>
Tiles nr.2 - Script Codes CSS Codes
body { background-color: #222; overflow: hidden; margin:0; padding:0;
}
canvas { background-color: #000;
}
Tiles nr.2 - Script Codes JS Codes
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var cw = canvas.width = window.innerWidth, cx = cw / 2;
var ch = canvas.height = window.innerHeight, cy = ch / 2;
ctx.strokeStyle = "#fff";
ctx.shadowBlur=15;
ctx.shadowOffsetX=-2;
ctx.shadowOffsetY=-2;
ctx.shadowColor="#333";
var rad = Math.PI / 180;
var step = 30;//cw/25;
for( var y = 0; y < ch;y+=step){
for( var x = 0; x < cw; x+=step){ var hyp = Math.sqrt( cw*cw + ch*ch); var xy = Math.sqrt( x*x + y*y); var hue = map(xy, 0, hyp, 180, 240) + randomIntFromInterval(-5, +5); ctx.fillStyle = "hsl("+hue+", 100%,50%)"; ctx.fillRect(x,y,step,step);
}
}
function Draw() {
requestId = window.requestAnimationFrame(Draw);
ctx.clearRect(0,0,cw,ch);
}
//Draw();
function map(n, a, b, _a, _b) { var d = b - a; var _d = _b - _a; var u = _d / d; return _a + n * u;
}
function randomIntFromInterval(mn, mx) { return ~~(Math.random() * (mx - mn + 1) + mn);
}
Developer | Pogany |
Username | giaco |
Uploaded | November 09, 2022 |
Rating | 3 |
Size | 2,030 Kb |
Views | 22,264 |
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 |
Matrix Falling Code | 52,476 Kb |
Fuzzies | 2,338 Kb |
Tiles | 2,018 Kb |
Mountains | 2,389 Kb |
Circles | 2,621 Kb |
Helianthus | 1,995 Kb |
Swim Smooth | 2,897 Kb |
Out of the blue | 2,537 Kb |
Basket | 2,297 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 |
Angular-HAML | Cwacht | 2,022 Kb |
RRC wrapSwitch | Pshrmn | 2,922 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
Sass random color animation | Jotavejv | 4,827 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
Speech bubbles | Something | 1,547 Kb |
CSS3 Fullscreen Background Slideshow | Leetech | 3,435 Kb |
Improve | Gavra | 1,652 Kb |
Colorful Sliders | Chanrith | 1,246 Kb |
CSS Patterns | Alyda | 3,953 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!