Skip to content

splurf/donut.live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      --fps <FPS>      Custom Frames/sec
  -c, --colored        Enable/Disable color
  -f, --force-colored  Ensure 'COLORTERM' and 'CLICOLOR_FORCE' are set
  -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 util.rs heavily references the original donut.c script.