Qiskit Framework for Quantum Error Correction is an open-source framework for developers, experimentalist and theorists of Quantum Error Correction (QEC).
Refer to installation guide.
from qiskit_qec.codes.codebuilders.triangular_color_code_builder import TriangularColorCodeBuilder
code = TriangularColorCodeBuilder(d=3).build()
code.draw(face_colors=True, show_index=True)