Automatic replace mask color for sprite

I wish to generator mask automatic to make use of fast-neural-doodle

background for 4232
background for 4232

Style

background for 4232
background for 4232

Example:

https://www.imagemagick.org/discourse-server/viewtopic.php?f=22&t=31556#p143775

It sounds like the following window batch script using imagemagick has solved you problem. Is that true?

%IM%convert ^
 bg.png ^
 -colorspace Gray ^
 -blur 0x5 ^
 ( -size 10x1 xc:Lime ^
 -size 10x1 xc:Blue ^
 -size 10x1 xc:Red ^
 -size 70x1 xc:Yellow ^
 +append ) ^
 -clut ^
 fnd_out.png

yes.

In bash:

convert
bg.png
-colorspace Gray
-blur 0x5
( -size 10x1 xc:Lime -size 10x1 xc:Blue -size 10x1 xc:Red -size 70x1 xc:Yellow +append )
-clut
fnd_out.png

With this could generate a fund based in neural nets, although I follow working in this.

http://4232.cf/2017/03/11/neural-network-for-background/

Thanks for clarifying!

I try to solve this with Pack sprites but is channel alpha remains bad and adds transparency between sprites.

mask and sprites cutout of paint