White fabric texture picture and dark image synthesis, how to change the color of the cloth and retain the texture?

I use the method of positive overlay to synthesize two pictures, one is a white cloth picture, the other is a dark picture (take black as an example)
the principle of positive overlay is that multiplies the pixel values of the two colors and divides them by 255 , so all colors and black are overlapped, and the final result must be black. The darker the color, the lighter the texture of the resulting image

.

what method can be used to synthesize dark pictures and white pictures into while retains the texture of white fabric pictures?

as shown in the following figure

****


like this?

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e463a8-44b9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e463a8-44b9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?