NullDev / matrixjs

:negative_squared_cross_mark: Script that will turn your website into a Matrix with custom ASCII-Art text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matrix.js

This script will turn your homepage into a Matrix with custom, ASCII-Art styled text!

How-To:

  • Include matrix.js in your HTML Code:
<script src="matrix.js"></script>
  • Change the body style:
<style type="text/css">
     body{min-width:1024px;min-height:400px;width:100vw;height:100vh;margin:0;}
</style>
  • Set the body like this:
<body bgcolor="#000" onload="matrix('YOUR TEXT')" onresize="init()">

  Where you need to replace "YOUR TEXT" by the text you want to output

  • Finally, set the main element inside the body:
<canvas width="16" height="16" id="mainCanvas"></canvas>

Thats it!


A sample index.html is here.

Note: There is also a Minified version of the script! Just use matrix.min.js


Live Demos:

Github:
https://nulldev.github.io/matrixjs/

Demo with Input (GitHub):
https://nulldev.github.io/matrixjs/demo/


Known issues:

  • It isn't really optimized for mobile devices...

About

:negative_squared_cross_mark: Script that will turn your website into a Matrix with custom ASCII-Art text

License:MIT License


Languages

Language:JavaScript 97.3%Language:HTML 2.7%