An open API service indexing awesome lists of open source software.

https://github.com/hugolgst/term-art

📊 A terminal boards using ascii art
https://github.com/hugolgst/term-art

boards charts terminal-art

Last synced: 6 months ago
JSON representation

📊 A terminal boards using ascii art

Awesome Lists containing this project

README

          



Gem version
Downloads
License


How To Use •
Documentation •
Example

# How to use
Install the gem manually :
```
$ gem install term-art
```

or add it to your Gemfile :
```diff
+ gem 'term-art'
```

and then run :
```
$ bundle
```

# Documentation
## Styles
There are two differents styles:
* `:simple` ![Simple style](https://i.imgur.com/PmgaCsV.png)
* `:double` ![Double style](https://i.imgur.com/SCyd2Kx.png)
## Colors
See [hue-rb](https://github.com/AnanaGame/hue-rb#colors)

# Example
```ruby
require 'term-art'

chart = TermArt::Chart.new([
['A', 'B', 'C'],
['D', 'E', 'F']
])
puts chart.draw(style: :simple, color: :red)
```