2dpixels-terminal

visualize 2dpixels in the terminal

Usage no npm install needed!

<script type="module">
  import dpixelsTerminal from 'https://cdn.skypack.dev/2dpixels-terminal';
</script>

README

2dpixels-terminal

display a 2-dimensional ndarray of colors in the terminal

install

with npm, do:

npm i --save 2dpixels-terminal

usage

var rainbowPixels = require('rainbow-pixels')
var toTerminal = require('2dpixels-terminal')

var height = process.stdout.rows
var width = process.stdout.columns

rainbowPixels({
  shape: [height, width]
})
.pipe(toTerminal())

license

ISC