Skip to content

Map and transform "allRGB" images

License

Notifications You must be signed in to change notification settings

jankais3r/Recolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Recolor

Map and transform "allRGB" images

Use like this: python3 recolor.py 1.png 2.png 3.png

The script looks at the first two images and it creates a map describing the difference in location of each pixel, then it applies the same movements to the pixels of the third image.

Diagram

Pixel map:

{(0, 0): (0, 1), (0, 1): (1, 0), (0, 2): (2, 0),
 (1, 0): (2, 1), (1, 1): (2, 2), (1, 2): (0, 0),
 (2, 0): (1, 2), (2, 1): (1, 1), (2, 2): (0, 2)}

Requirements:

  • Pictures 1 and 2 have to have a resolution of 4096x4096 with no repeating colors (see allRGB's gallery of such images).
  • Picture 3 has to have a resolution of 4096x4096, colors don't matter.

Example gallery: here

About

Map and transform "allRGB" images

Topics

Resources

License

Stars

Watchers

Forks

Languages