Filling the grid with the colors of the line