I am learning Swift with the cs193p online class https://cs193p.sites.stanford.edu/.
One of the assignment entails creating a custom shape (like a diamond) and then applying a striped pattern to its background (with different colors).
I was wondering whats a good way to approach this (without using images if possible). Looked around quite a bit but don't even know where to start. In general, is there any way
Googled around a bit but couldn't find any good solutions.