Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

hryk/glitchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glitchy

A tiny tool for glitch displays. Only on the MacRuby.

Installation

% sudo macgem install glitchy

Usage

To glitch your display, just type:

% glitch.rb

flavors option changes type of glitch.

% glitch.rb --flavors png

Available flavors are below.

  • jpeg (default)
  • png
  • gif

flavors option accept comma seperated multiple values.

% glitch.rb --flavors gif,jpeg

help option shows description of flags.

% glitch.rb -h

You can speed up glitchy with rubygems-compile.

% sudo macgem install rubygems-compile
% sudo macgem compile glitchy

glitchy runs as server with --server option.

% glitch.rb --server [--host HOSTNAME] [--port PORT]

glitchy server cause glitch on displays in response to HTTP GET request.

% curl http://localhost:9999/screens

% curl http://localhost:9999/screens/0

% curl http://localhost:9999/screens?flavors=png

API

Glitchy::Server Glitchy::Glitchable Glitchy::Screen Glitchy::File Glitchy::Flavor Glitchy::Flavor::Jpeg Glitchy::Flavor::Gif Glitchy::Flavor::Png TODO Glitchy::Flavor::BMP Glitchy::Flavor::Tiff Glitchy::Flavor::Webp Glitchy::Flavor::4BC Glitchy::Flavor::BASCII Glitchy::Flavor::BLINX Glitchy::Flavor::CCI Glitchy::Flavor::MCF Glitchy::Flavor::USPEC Glitchy::Flavor::XFF

Development

use rbenv-macruby to manage macruby versions and gems.

References

About

A tiny tool for glitch displays. it will work on MacRuby. (https://gist.github.com/964287)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published