scanlime/fadecandy — pull request #30 by danndalf (2014-05-09 20:09:08+00:00)
Title: Adding Perl OPC module and examples

This pull request contains 10 files in the examples/perl directory:

* `OPC.pm` is a method-for-method Perl port of the OPC library for Python.
* `automaton.pl` displays a one-dimensional cellular automaton on the LED strip. The rule number (e.g. 30) is given through the command line.
* `blocks.pl` displays moving blocks of overlapping red, green, and blue.
* `chaser.pl` is the standard chaser pattern.
* `gameoflife.pl` implements a two-dimensional cellular automaton (dimension 1: position, dimension 2: RGB-like color-space, with nine quantized positions) on the one-dimensional LED strip.
* `mandelbrot.pl` traverses a line across the Mandelbrot fractal, then displays that line on the LED strip. Fractal coordinates may be entered on the command line, and a zoomed-out default is assumed if no coordinates are given.
* `multitomaton.pl` displays three different one-dimensional cellular automata on the LED strip: one each on red, green, and blue. Rule numbers may be given through the command line.
* `random.pl` just sends random well-formed pixel data to the LED strip.
* `turnthemoff.pl` does what it says on the tin.
* `waves.pl` does the same kind of thing blocks.pl does, but with sinusoidal smoothing of the blocks. So, they're overlapping waves of red, green, and blue.