Matrix

Size
1,922 Kb
Views
30,360

How do I make an matrix?

What is a matrix? How do you make a matrix? This script and codes were developed by Stathis Nikolaidis on 30 August 2022, Tuesday.

Matrix Previews

Matrix - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Matrix</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <canvas id="matrix"></canvas> <script src="js/index.js"></script>
</body>
</html>

Matrix - Script Codes CSS Codes

body{ background:black;
}
canvas{ display:block;
}
* { margin:0; padding:0;
}

Matrix - Script Codes JS Codes

var c = document.getElementById("matrix");
var ctx = c.getContext("2d");
c.height = window.innerHeight;
c.width = window.innerWidth;
var theString = "Stathis Nikolaidis";
theString = theString.split("");
var font_size = 12;
var columns = c.width/font_size;
var drops = [];
for(var x = 0; x < columns; x++)	drops[x] = 1;
function draw(){	ctx.fillStyle = "rgba(0, 0, 0, 0.05)";	ctx.fillRect(0, 0, c.width, c.height);	ctx.fillStyle = "#0F0";	ctx.font = font_size + "px arial";	for(var i = 0; i < drops.length; i++){	var text = theString[Math.floor(Math.random()*theString.length)];	ctx.fillText(text, i*font_size, drops[i]*font_size);	if(drops[i]*font_size > c.height && Math.random() > 0.975)	drops[i] = 0;	drops[i]++;	}
}
setInterval(draw, 30);
Matrix - Script Codes
Matrix - Script Codes
Home Page Home
Developer Stathis Nikolaidis
Username stathisnikolaidis
Uploaded August 30, 2022
Rating 3
Size 1,922 Kb
Views 30,360
Do you need developer help for Matrix?

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!

Stathis Nikolaidis (stathisnikolaidis) Script Codes
Create amazing marketing copy 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!