Hi, I was browsing CTAN (as one does ...) and came across this package. Neat!
I wondered about implementing it using TikZ's pic syntax, since that allows for more flexibility and integration with other parts of a drawing. In particular, it handles shifts and rotations so you don't have to put them explicitly in the command.
Also, it struck me that for the squares then you don't need to specify each corner's colour. Up to rotation, there are only two designs and these can be distinguished by the centre colour.
Hi, I was browsing CTAN (as one does ...) and came across this package. Neat!
I wondered about implementing it using TikZ's
pic
syntax, since that allows for more flexibility and integration with other parts of a drawing. In particular, it handles shifts and rotations so you don't have to put them explicitly in the command.Also, it struck me that for the squares then you don't need to specify each corner's colour. Up to rotation, there are only two designs and these can be distinguished by the centre colour.
Anyway, I had a go at doing these at https://github.com/loopspace/truchet