We are going to change the cloth pattern by using a simple way that is mentioned in this example so follow now.
Take a picture: Choose any picture to modify.
Filter effect: After selection press Ctrl + J and fill color "0a97f9", go to Filter menu > Sketch > Apply Halftone Pattern.
Now change layer settings.
You will get this picture.
Layer style: Go to Layer menu > Layer style > Pattern Overlay.
This is the final result.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.