A basic interactive bitmap editor for the terminal.
- Requires Ruby 2.1+
$ git clone https://github.com/bbonamin/terminal_paint
$ cd terminal_paint
$ rake build
$ gem install pkg/terminal_paint-0.0.1.gem
Command | Description |
---|---|
I M N | Creates a new M x N image with all pixels coloured white (O). |
C | Clears the table, setting all pixels to white (O). |
L X Y C | Colours the pixel (X, Y) with colour C. |
V X Y1 Y2 C | Draws a vertical segment of colour C in column X between rows Y1 and Y2 (inclusive). |
H X1 X2 Y C | Draws a horizontal segment of colour C in row Y between columns X1 and X2 (inclusive). |
F X Y C | Fills the region R with the colour C. R is defined as: Pixel (X, Y) belongs to R. Any other pixel with the same colour as (X, Y) which shares a common side with any pixel in R also belongs to R. |
S | Shows the contents of the current image. |
Z | Inverts the colours of the current image. (using the letter position in the alphabet with an descending order) |
X | Terminates the session. |
- Fork it ( https://github.com/bbonamin/terminal_paint/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request