How can I create these specific patterns?

[removed]