# terminal-pixel

Render Pixel in Your Terminal

<p>
  <img src="./logo.svg" alt="Terminal Pixel">
</p>
<p>
    <a href="https://www.npmjs.com/package/terminal-pixel"><img src="https://img.shields.io/npm/dm/terminal-pixel?style=flat-square" alt="Total Downloads"></a>
    <a href="https://www.npmjs.com/package/terminal-pixel"><img src="https://img.shields.io/bundlephobia/minzip/terminal-pixel?style=flat-square" alt="Latest Release"></a>
    <a href="https://github.com/shiyangzhaoa/terminal-pixel/blob/main/LICENSE"><img src="https://shields.io/github/license/shiyangzhaoa/terminal-pixel?style=flat-square" alt="License"></a>
</p>

## Material
[Pokemon-Redfigma](https://www.figma.com/community/file/1111031070438574852/Pokemon-Redfigma)

## Install

```shell
npm install terminal-pixel -g
```

## How to use

```shell
terminal-pixel
// or npx terminal-pixel
```

```
> Pixel Center
  Game Center
/Users/xx/bad-apple.mp4

-------------- or --------------

  Pixel Center
> Game Center

> snake

Use the 'esc' key to exit the game
```

## Pixel center

### Render image in your terminal

<img src="./demo/frog-flower.png" alt="Frog Flower">

### Render video in your terminal

You need to download [ffmpeg](https://ffmpeg.org/download.html)

<img src="./demo/ji.png" alt="Bad Apple">

## Game center

### Snake

<img src="./demo/snake.png" alt="Snake">
