In this work, we show that an n-dimensional sublattice of an n-dimensional lattice induces a tessellation in the flat torus , where the group G is isomorphic to the lattice partition . As a consequence, we obtain, via this technique, toric codes of parameters , and from the lattices , and , respectively. In particular, for , if is either the lattice or a hexagonal lattice, through lattice partition, we obtain two equivalent ways to cover the fundamental cell of each hexagonal sublattice of hexagonal lattices , using either the fundamental cell or the Voronoi cell . These partitions allow us to present new classes of toric codes with parameters and color codes with parameters in the flat torus from families of hexagonal lattices in .