changing pattern for canvas