tortu

0.0.2 • Public • Published

AJLogo command line interpreter and renderer.

Installation

First you need to follow the instructions for node-canvas.

Once you have every pre-requisite for node-canvas install tortu as follows:

npm install -g tortu

Usage

Create a file named test.logo:

to square :side
    repeat 4 [ forward :side left 90 ]
end

to figure
    repeat 36 [ square 40 left 10 ]
end

home figure

then you can run it as:

tortu test.logo

Alternatively you can use shebangs:

#!/usr/bin/env tortu

to square :side
    repeat 4 [ forward :side left 90 ]
end

to figure
    repeat 36 [ square 40 left 10 ]
end

home figure

Note

Improve rendering by using an small font in your terminal.

License

MIT

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i tortu

    Weekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • jfromaniello