Categories: None [Edit]
hexflex
# Hexflex
[](https://travis-ci.org/aauthor/hexflex)
Hexflex is a Ruby gem and command-line tool for automatically generating
[hexaflexagon] templates.
## Installation
gem install 'hexaflexa'
...or you can put it in your Gemfile.
## Usage
### as a gem in your ruby project
To create an [RVG] object containing a vector of the hexaflexagon template:
Hexflex.make_template_vector(side_fills: ARRAY_OF_SIDE_FILLS, template: TEMPLATE)
To save the hexaflexagon template as a file to the disk:
Hexflex.create_template_image!(side_fills: ARRAY_OF_SIDE_FILLS, template: TEMPLATE, output_file_name: OUTPUT)
Where:
- a `SIDE_FILL` is a [standard X color] or path to file for a side of the hexaflexagon. Either three or zero sides should be specified. The default are cyan, magenta, and yellow.
- `TEMPLATE` is template the form for the hexaflexagon. It can either be "tape" or "glue". The default is "tape".
- `OUTPUT` is a path to save the hexaflexagon template image. The default is "out.png".
### as a command-line tool
hexflex [-s SIDE_FILL -s SIDE_FILL -s SIDE_FILL] [-t TEMPLATE] [-o OUTPUT]
See above for definitions of `SIDE_FILL`, `TEMPLATE`, AND `OUTPUT`.
[hexaflexagon]: https://en.wikipedia.org/wiki/Flexagon#Trihexaflexagon
[standard X color]: https://en.wikipedia.org/wiki/X11_color_names
[RVG]: https://rmagick.github.io/rvg.html
Total
Ranking: 160,480 of 187,255
Downloads: 3,101
Daily
Ranking: 98,642 of 187,239
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,973,645,220 | bundler |
7 | 1,196,497,015 | activesupport |
10 | 1,152,124,538 | rake |
27 | 919,498,517 | rspec |
173 | 255,207,491 | pry-byebug |
916 | 50,069,151 | rmagick |
Owners
# | Gravatar | Handle |
---|---|---|
1 | aauthor |