Skip to content

A simple program to recolour png icon-like pictures with just one colour + transparent or white background. Resulting images all have transparent background and a new colour.

Elanaris/recolour_png_icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Converts simple png icon-like pictures with one colour and transparent or white background to colours specified in the list "colours". Also converts white background to transparent.

The resulting image has only one colour + transparent background! All resulting images are saved in folders named by their respective colours. The program should create the folders if they aren't there already.

I used it to recolour dice images for a dice rolling app, but it should it be flexible enough to recolour other one-colour png images/icons by only changing these variables:

colours = list of colours for the picture to be recoloured into

transparent_img_names = names of source images with transparent background (except the .png)

non_trans_img_names = names of source images with non-transparent background (except the .png)

source_folder = the folder where all the source images are stored

About

A simple program to recolour png icon-like pictures with just one colour + transparent or white background. Resulting images all have transparent background and a new colour.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages