A Ruby port of Vibrant.js.
Extracts prominent colors from a provided image.
- Imagemagick
- Ruby >= 2.0.0
gem install vibrantrequire 'vibrant'
# Open up an image file
vibrant = Vibrant.new(File.open('someimage.jpg', 'r'))
vibrant.swatches # returns 'swatches' for the different prominent colorsMIT - See LICENSE.txt.