I have learned two ways to do this by either using masks with solid layers or with shape layers. Both methods can return some very cool results. I then added some contrasting colors, a camera with depth of field and a nice angle.
Design tools I used in this project
The possibilities are pretty endless when it comes to creating these patterns. Using masks in a variety of ways makes each pattern unique.