Skip to content

kevingrillet/JSMatrixRain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSMatrixRain

MatrixRain implementation in JavaScript.

Usage

HTML

<script type="text/javascript" src="matrixRain.js"></script>

JavaScript

var init = function(){
  cMatrixRain.width = window.innerWidth;
  cMatrixRain.height = window.innerHeight;
  matrixRain.init(
    'cMatrixRain', //idCanvas
    15, //FontSize
    30, //fps (optional)
    0.975 //rnd (optional)
  );
};
window.addEventListener('load', function() { init(); });
window.addEventListener('resize', function() { init(); });

CSS

@font-face{font-family: 'MatrixCode'; src: url(matrix_code_nfi.otf);}

About

MatrixRain implementation in JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published