Rendering a pattern