Pixitar is an avatar generation library written in Ruby. Generate random, male or female avatars.
Inspired by https://github.com/matveyco/8biticon (author of the original image assets).
Add this line to your application's Gemfile:
gem 'pixitar'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install pixitar
require "pixitar"
avatar = Pixitar::Avatar.new
avatar.generate_avatar " Generates a random with either male or female face and saves it to avatar.png
avatar.generate_avatar(:male, "avatar.png") " Generates a random avatar with male face and saves it to avatar.png
avatar.male_avatar " Generates a random avatar with male face and saves it to avatar.png
avatar.female_avatar " Generates a random avatar with female face and saves it to avatar.png
Run rake test
to run the tests.
Bug reports and pull requests are welcome on GitHub at https://github.com/ptcodes/pixitar.
- Fork it (https://github.com/ptcodes/pixitar.cr/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
The gem is available as open source under the terms of the MIT License.