Lesson 36 of 51 · Patterns
Tessellation
Tessellation: tiles that fit perfectly without gaps.
Python
from turtle import *
bgcolor("black")
color("gold")
pensize(1)
speed(0)
def hexagon(size):
for i in range(6):
forward(size)
right(60)
for row in range(5):
for col in range(5):
penup()
goto(col * 90 - 180, row * 78 - 156)
pendown()
hexagon(45)
done()Output

1
Hexagon Tiles
Hexagons tile perfectly — try drawing a grid of them.