Skip to content

Background Colour picker

This is a python program that cuts your desktop picture into rectangles, representing your shortcuts. It then gives you the ideal colour for each shortcut based on the background picture.

This program is remarkably compact at only 70 lines. It was quite interesting to make, I would love to try to make it in some other language like C.

Below is a small demo showing it cutting and (for debug purposes) saving each fragment. It then makes a picture with each rectangle the recommended colour, which you can see at the end.

If you want the code, simply contact me 🙂

Example with comparison:

Ps: This is rallycross at Spa 😌

Leave a Reply

Your email address will not be published. Required fields are marked *