This is an aspect of the field of study known as tessellation.
Floors and walkways use contrasting tiles or blocks in tessellation patterns.