Truchet Tiling with Hexagons in p5.js
Truchet tiles are tiles that can be rotated and create patterns as a result. In my last video we went over square tiles. This time we go over tiling with hexagons in p5.js. In the next video we'll do octagons.
Join my Discord: https://discord.gg/FSW6zzU
Follow me on Twitter: https://twitter.com/SteveMakerspace
Code used in this video:
https://editor.p5js.org/StevesMakerspace/sketches/02ZW2fRj8
Collection of Truchet Tile code:
https://editor.p5js.org/StevesMakerspace/collections/Yqck5LnRD
Video on square Truchet tiles:
https://youtu.be/99Hr8lpWWSg
Article that shows another way to make hexagonal tiles:
https://blog.peterkagey.com/2021/02/regular-truchet-tilings/
Right triangle math:
https://www.omnicalculator.com/math/right-triangle-side-angle
Music:
Funk Down (Sting) by MK2 (theme)
0:00 Intro and start
2:44 Hexagon math
6:15 Back to the code