Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Get pretty colors from your Steam screenshots.

License

Notifications You must be signed in to change notification settings

cheshire137/steamy-screenshots

 
 

Repository files navigation

Steamy iTunes Colors

Uses a port of Panic's iTunes album art color algorithm in JavaScript to get colors from a given Steam screenshot.

Screenshot

How to Run

cp env.sh.sample env.sh

Edit env.sh to specify the URL to where your Steam screenshots RSS feed app is hosted, as well as your Steam web API key.

npm install
bundle
rackup

Visit localhost:9292.

How to Update the List of Steam Apps

npm install
npm run-script update-steam-apps
npm run-script update-steam-apps-index

How to Deploy to Heroku

After pushing to Heroku with git push heroku master, you need to set some environment variables:

heroku config:set RSS_SERVICE_URL=http://url-to-steam-screenshot-rss.com
heroku config:set STEAM_API_KEY=your_steam_web_api_key
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
heroku ps:scale web=1

Thanks

Thanks to lukasklein for the JavaScript to extract colors from the screenshots. Thanks to TinyColor for color parsing. Thanks to lunr.js for the Steam app search. Thanks to lunr-index-build for the tool used to build the lunr.js search index from the list of Steam apps.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.9%
  • HTML 16.0%
  • Ruby 13.3%
  • CSS 7.8%