Developer Center

Resources to get you started with Algorithmia

Create a Custom Color Scheme From Your Favorite Website


Available on GitHub.

This code snippet shows how to use Algorithmia to grab all the links from a webThis recipe allows you to pipe in several images, including ones that are a montage of other images in order to get a personalized color scheme.

While there are plenty of online color scheme generators, none can generate random color palettes from multiple images found on your favorite design blog or shopping site.

This recipe will show you how to extract image links from a url that has multiple images on it, get the color schemes from those image urls and generate a new custom color scheme made of five random hexadecimal colors. Then you can plug them into Adobe Color Wheel or another online color scheme creator and visualize your new color scheme.

For the full blog post related to this recipe, see Create a Custom Color Scheme From Your Favorite Website.

Getting Started

Install the Algorithmia client from PyPi:

  install algorithmia 

You’ll also need a free Algorithmia account.

Sign up here, and then grab your API key.

Find this line in the script:

client = Algorithmia.client("YOUR_API_KEY")

and add in your API key.

How to Extract Colors from Images

After putting in your own API key to the line above run it in your console environment: 

Built With