mscroggs / truchet

LaTeX package for drawing Truchet tiles
MIT License
1 stars 1 forks source link

Implementing as pics #1

Open loopspace opened 5 years ago

loopspace commented 5 years ago

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

mscroggs commented 5 years ago

Hi, this looks good. I'll merge these changes and get a new version pushed to CTAN next time I have a free evening

loopspace commented 5 years ago

Sounds great.