¿ How to NFT merge images ( layers )?

Hello guys i have a question about how to merge images for nft, i like programming so i decided to try building a simple game based in nft

The problem that i have is how to merge the layers for generate random images, in the actually i looked this repository :

https://github.com/kypanz/hashlips_art_engine

but if anyone knows about another that can be similar please let me know, right know i am looking the code to see how its work ( i can use it to generate but i like learn how the things works too )

i like to see the alternatives that i have before start to build something, right now i am using this for testing cases :heart:

Have good day ! :slight_smile: :heart: