2017 © Pedro Peláez
 

library drawille

Terminal drawing with braille

image

whatthejeff/drawille

Terminal drawing with braille

  • Wednesday, May 28, 2014
  • by whatthejeff
  • Repository
  • 5 Watchers
  • 88 Stars
  • 757 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-drawille

Terminal drawing with braille., (*1)

Octocat example, (*2)

Requirements

php-drawille requires PHP 5.4.0 or later., (*3)

Installation

The recommended way to install php-drawille is through composer. Just create a composer.json file and run the php composer.phar install command to install it:, (*4)

{
    "require": {
        "whatthejeff/drawille": "~1.0"
    }
}

Usage

use Drawille\Canvas;

$canvas = new Canvas();

for($x = 0; $x <= 1800; $x += 10) {
    $canvas->set($x / 10, 10 + sin($x * M_PI / 180) * 10);
}

echo $canvas->frame(), "\n";

Usage example, (*5)

use Drawille\Turtle;

$turtle = new Turtle();

for($x = 0; $x < 36; $x++) {
    $turtle->right(10);

    for($y = 0; $y < 36; $y++) {
        $turtle->right(10);
        $turtle->forward(8);
    }
}

echo $turtle->frame(), "\n";

Turtle example, (*6)

Examples

To use the scripts in the examples directory, you need to install the dependencies with composer., (*7)

$ cd examples
$ php composer.phar install
$ ./img2term.php --fab --threshold 600 ~/Pictures/sb.png

img2term example, (*8)

Tests

Build Status, (*9)

To run the test suite, you need composer., (*10)

$ php composer.phar install
$ vendor/bin/phpunit

Acknowledgements

php-drawille is a port of drawille., (*11)

License

php-drawille is licensed under the MIT license., (*12)

The Versions

28/05 2014

dev-master

9999999-dev http://github.com/whatthejeff/php-drawille

Terminal drawing with braille

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

console terminal turtle drawing braille

26/05 2014

v1.0.1

1.0.1.0 http://github.com/whatthejeff/php-drawille

Terminal drawing with braille

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

console terminal turtle drawing braille

25/05 2014

v1.0.0

1.0.0.0 http://github.com/whatthejeff/php-drawille

Terminal drawing with braille

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

console terminal turtle drawing braille