Grief-stricken fans donned Kobe Bryant T-shirts on Sunday and flocked to Madison Square Garden, which was lit up in the purple and gold of the Los Angeles Lakers to pay tribute to the team’s legendary player.

As the Knicks prepared to take on the Brooklyn Nets inside the arena, mourners snapped photos of the illuminated exterior and an electronic billboard that featured a giant black-and-white image of Bryant facing West 33rd Street.

“It’s so sad. We find it devastating,” said Melanie Kennedy, 46, of New Jersey. “We just saw him in March with his 13-year-old daughter at a UConn basketball game. I can’t believe they’re both gone . . . How can an icon die that way? With his daughter?”

Jason Duvall, 33, a tourist from Sacramento, California, called Bryant “kind of like the true American hero.”

“What he’s done for the game, outside the game, he’s a true role model,” Duvall said. “I was a Sacramento Kings fan and he was our archnemesis for years, but I still had respect for him.”

The Garden observed 24 seconds of silence before the tip-off to match one of Bryant’s two retired jersey numbers.

Following the silent commemoration, fans chanted, “Kobe! Kobe!” in his honor.

The NBA made its team locker rooms off-limits to reporters so players could have privacy, and Nets coach Kenny Atkinson appeared visibly shaken as he delivered a statement on behalf of his team.

Atkinson’s red-rimmed eyes were brimming with tears and he struggled to contain his emotions while discussing Bryant’s death.

“We’d like to express our sincerest condolences to the Bryant family and everybody affected by the tragedy,” he said before letting out a loud sigh. “As an organization, we’re devastated. Our players are devastated.”

Atkinson let out another big sigh before making a reference to the team’s star guard, Kyrie Irving, who left the arena upon learning that Bryant had died.

“Our thoughts and prayers are with him also,” Atkinson said. “Just a tough time for the NBA, for all of us.”

Knicks legend Walt “Clyde” Frazier, now a TV analyst for the MSG Network, told The Post that Bryant’s death “hit me like a hammer.” Interim coach Mike Miller read a statement that described Bryant as “not only a basketball icon but a global icon, someone many in our locker room hold in high regard.”

Additional reporting by Brian Lewis