Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

28 lines (24 loc) · 1.01 KB

#color-palette ####Ruby script to get the color palette of any url. #####This is an improved version from Alyssa color-palette ruby script.


####Running script:

ruby color.rb 'url'

####Colors extractor:

  • The color palette considers hex, rgb, rgba and english word colors (ex. red, green, blue);
  • All colors are translated to hex just for consistency;
  • Search all colors within External, Inline and Embedded stylesheets;
  • Will return in JSON;
  • This script ignores opacity.

####Available urls: