Inspired by the color code.