1.5.0 • Published 6 days ago

matrix-effect v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 days ago

Matrix Effect

matrix

Description

This is an implementation of the famous "matrix effect", built with Html canvas tag and TypeScript. The purpose of this project is to be reused in any HTML page. Since it is built with the HTML canvas tag, the script can be easily reused by importing it with npm and then loading it into your page.

Usage

  • First, install the project as a dependency

        npm install matrix-effect
  • Then load the script on your HTML page

        <script src="./node_modules/matrix-effect/script/index.js" ></script>
  • And finally, add a canvas tag to your page with the id matrix

        <canvas id="matrix"></canvas>

Important

The dimensions of the canvas will be defined by its parent. In the example shown below, the canvas will have a width of 100px and a height of 80px

    <div class="parent">
        <canvas id="matrix"></canvas>
    </div>
    .parent {
        width: 100px;
        height: 80px;
    }
1.5.0

6 days ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

3 years ago