All Projects → gustavodiel → colorama

gustavodiel / colorama

Licence: MIT license
A Gem for extracting the most prevalent colors from an image

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to colorama

Colorls
A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. 🎉
Stars: ✭ 3,896 (+19380%)
Mutual labels:  color, gem
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (+45%)
Mutual labels:  color, gem
Color.js
Extract colors from an image (0.75 KB) 🎨
Stars: ✭ 42 (+110%)
Mutual labels:  color, extract
rsgem
Rootstrap way ® to generate gems
Stars: ✭ 26 (+30%)
Mutual labels:  gem
crittr
High performance critical css extraction with a great configuration abilities
Stars: ✭ 39 (+95%)
Mutual labels:  extract
JetBrains-scheme
JetBrains主题,更完美的高亮。支持 IntelliJ IDEA、phpstorm、goland、webstorm
Stars: ✭ 25 (+25%)
Mutual labels:  color
ansi-to-svg
😹 convert ANSI Escaped CLI strings to SVGs
Stars: ✭ 18 (-10%)
Mutual labels:  color
pick-a-good-color
Choose the boldest and most accessible color for a given background.
Stars: ✭ 18 (-10%)
Mutual labels:  color
Farge
🎈Tell the name of hex color
Stars: ✭ 23 (+15%)
Mutual labels:  color
ColorBlender
A .NET library for color matching and palette design.
Stars: ✭ 27 (+35%)
Mutual labels:  color
manakin
🐦 Prime colors for your Node.js console — quick & safe.
Stars: ✭ 29 (+45%)
Mutual labels:  color
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (+635%)
Mutual labels:  color
shape-color-dector
opencv检擦形状和颜色
Stars: ✭ 17 (-15%)
Mutual labels:  color
anypalette.js
🎨 Read/write all color palette file formats ❤🧡💛💚💙💜
Stars: ✭ 41 (+105%)
Mutual labels:  color
sinator
Sinatra application generator
Stars: ✭ 19 (-5%)
Mutual labels:  gem
colour-notebooks
Colour - Jupyter Notebooks
Stars: ✭ 21 (+5%)
Mutual labels:  color
multi-tenancy-devise
mtdevise adds basecamp style user logins to your ruby on rails application.
Stars: ✭ 27 (+35%)
Mutual labels:  gem
als typograf
Ruby client for ArtLebedevStudio.RemoteTypograf Web Service.
Stars: ✭ 15 (-25%)
Mutual labels:  gem
concolor
Colouring template strings using tags with annotations 🎨
Stars: ✭ 35 (+75%)
Mutual labels:  color
colour
Validate colours.
Stars: ✭ 31 (+55%)
Mutual labels:  color

Colorama

Colorama is a Gem for extracting the most dominant and prominent colors from an image.

Requirements

This Gem uses RMagick, so the ImageMagick lib must be installed.

Installation

Add this line to your application's Gemfile:

gem 'colorama'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install colorama

Usage

The simplest usage is extracting the information from the image's file directly:

colors = Colorama.extract_from_file('filename')

and it returns a Hash containing the keys background, primary, secondary and detail.


You may also pass the level of compression to apply to the image, like so:

colors = Colorama.extract_from_file('filename', detail: :high)

It accepts lowest, low, high and highest

Examples

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gustavodiel/colorama. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Colorama project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].