how to digitally create a pattern