I want to fill a non-rectangular shape with a pattern.
Filling a rectangular shape is not a problem… all I need to do is to find the top left, bottom right coordinates and then not exceed them in my loop placing the pattern elements.
Filling a circle should also be fairly straightforward, find the centre but do not exceed the radius… but I’m struggling to think how I could do this with a different shape, for example a star?
Does anyone know of a way to identify a shape and use it as some kind of mask?
Conversely, is it possible to flip this idea and fill everything outside of a shape.