ruby script to get the color palette of a site
Pull request Compare This branch is 6 commits behind alyssa:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
color.rb

README.md

color-palette

ruby script to get the color palette of a site

output: table of color and frequency

=== Running script:

  • ruby color.rb 'url'

=== Notes:

  • The color palette considers hex, rgb, rgba and english word colors (ex. red, green, blue).
  • All colors are translated to hex just for consistency.
  • This script ignores opacity.