Tiles nr.2

Developer
Size
2,030 Kb
Views
22,264

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 Previews

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);
}
Tiles nr.2 - Script Codes
Tiles nr.2 - Script Codes
Home Page Home
Developer Pogany
Username giaco
Uploaded November 09, 2022
Rating 3
Size 2,030 Kb
Views 22,264
Do you need developer help for Tiles nr.2?

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!

Pogany (giaco) Script Codes
Name
Matrix Falling Code
Fuzzies
Tiles
Mountains
Circles
Helianthus
Swim Smooth
Out of the blue
Basket
Create amazing web content 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!