Giter Site home page Giter Site logo

hzeller-matrix-example's Introduction

Hzeller Matrix Example

Example of using the heller-matrix add-on for Node. You can find it here https://www.npmjs.com/package/hzeller-matrix

$ sudo node app.js

This assumes a 32x32 RGB display. To change the width and height use --width and --height options (or --size).

$ sudo node app.js --width 96 --height 96
$ sudo node app.js --size 96x96

Or try some animations

$ sudo node app.js --rain
$ sudo node app.js --perlin
$ sudo node app.js --animation animations/32x32/pacman.gif
$ sudo node app.js --animation animations/32x32/tree.gif

Display text

$ sudo node app.js --text "Hello World!" --fontName fonts/Roboto.ttf --textColor blue

Display image

$ sudo node app.js --image images/32x32/emojis/435.png --iterations 2

The size of the display may be specified by the width and height options.

$ sudo node app.js --text "Hello World!" --width 96 --height 96
$ sudo node app.js --image images/96x96/emojis/435.png --iterations 2 --width 96 --height 96

Why not try a random animation with a 32x32 display?

$ sudo node app.js --animation animations/32x32

Or with a 96x96 display?

$ sudo node app.js --animation animations/96x96 --size 96x96
$ sudo node app.js --clock images/96x96/clocks/swiss-blue.png --size 96x96

hzeller-matrix-example's People

Contributors

meg768 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

michaelwschultz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.