splurf / donut.live

Tribute to parrot.live, with donuts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

donut.live

A tribute to parrot.live. Here it is in donut form.

Demo - Try It

curl donut.rustychads.com

Description

HTTP server that distributes frames of a rotating donut to every curl client.

  • The program can also be provided a custom GIF file (via the --gif flag). In this case, each frame from the GIF will be automatically converted into ASCII art. These frames will then be distributed with a frame rate based on the original delay of each frame. If the delay of each frame isn't properly set, then a manual frame rate is required. This can be fixed with the --fps flag.

Usage

Usage: donut-live [OPTIONS]

Options:
  -a, --addr <ADDR>  IP address [default: 127.0.0.1]      
  -p, --port <PORT>  Port number [default: 8080]
      --path <PATH>  URI location path [default: /]       
  -g, --gif <GIF>    Custom provided GIF
  -f, --fps <FPS>    Custom Frames/sec
  -c, --colored      Enable/Disable color
  -h, --help         Print help
  -V, --version      Print version

Other Live Demos

  • bad-apple.rustychads.com
  • shrek.rustychads.com

Todo

  • Improve trim_frames by removing all possible redundant ASCII-whitespace from every frame.

Notes

Credit

  • The gen_frame function within utils.rs heavily references the original donut.c script.

About

Tribute to parrot.live, with donuts.

License:MIT License


Languages

Language:Rust 100.0%