Skip to content

CookieUzen/bad-apple-tty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bad-Apple-TTY

A program that renders a video in the terminal using gocv and ansi codes.

Features:

  • true color support
  • terminal size scaling
  • frame rate/frame skipping (to keep up with a video)

Modes

  • tty: using black and white + 2 terminal blocks for 1 pixel
  • tty_subsample: tty, but vertical pixels are subsampled into 1
  • unicode: using black and white + half blocks for 2 pixels per character (this runs in tty)
  • truecolor: unicode + true color

Dev

Dev dependencies can be installed with devbox. Install devbox with your package manager of choice, then run devbox shell to drop into a dev environment.

Install

This program relies on the gocv library. The issue is the gocv library installation process is a minor pain, so I would recommend running this binary in a docker container.

If by any chance you managed to install gocv, build the program with:

go build .

Else, run the docker container like so:

docker run -v $(pwd):$(pwd) -w $(pwd) -it ghcr.io/cookieuzen/bad-apple-tty /bad-apple-tty

Or put it in an alias:

alias bad-apple-tty="docker run -v $(pwd):$(pwd) -w $(pwd) -it ghcr.io/cookieuzen/bad-apple-tty /bad-apple-tty"

About

A test go program to display bad apple in a tty

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors