The panel that will decide whether the Bloods gangbanger — who was convicted of killing two undercover cops — should get life in prison or lethal injection was shown a video of Wilson and his prison guard paramour Nancy Gonzalez enjoying an apparent quickie in an unlocked jailhouse “activity room.”

Gonzalez can be seen manning a security booth at the Metropolitan Detention Center in Brooklyn last July 15, while Wilson performs a lazy mop job of the surrounding area.

The cold-blooded killer then moves off camera to another room and is followed shortly thereafter by Gonzalez. They don’t reappear for another 2 minutes.

After the hookup Wilson seems to have a bit more pep in his step, sashaying across the prison’s concrete floor with the front of his white shirt open after the encounter.

Wilson wrote to pals that he was intentionally trying to impregnate Gonzalez, who wound up getting knocked up and giving birth to their son, Justus, in March.

Another prisoner stationed on the same cell block testified yesterday that the locked-down lothario would banter with the captivated prison guard for hours at her booth while other inmates could only look on with envy.

Convict Kevin Johanson testified that he once saw Gonzalez propping open the door to Wilson’s cell for several minutes.

“When she walked away I saw his pants around his ankles,” he said. “I saw his genitals exposed.”

Johansen said Wilson strutted like a celebrity behind prison walls and was proud of his cop-murdering rep.

“He said, ‘We all know why I’m here,’” Johansen said. “And he smiled while he said it and it was strange because it was like he was gloating about it. How do I remember it? Because it’s disgusting.”

Wilson was convicted in 2006 of the execution-style shooting of undercover Detectives James Nemorin and Rodney Andrews during a gun buy-and-bust sting gone horribly wrong.

He was sentenced to death, but eluded lethal injection after an appeals court tossed the sentence due to a prosecutorial error.

Jurors also heard from Andrews’ shattered widow, Maryann Andrews, who said she is still trying to pick up the pieces a decade after her husband’s assassination.

“The pain will never go away,” she testified through tears. The couple has two sons.

“All he ever wanted was to grow old with his children and see his children grow old. Our lives were ruined.”

Later, Gonzalez pleaded guilty to a charge of having sex with an inmate.

“I knew it was unlawful to have sex with an inmate who was in detention and under my supervision,” she told the judge.

She’s been subpoenaed by both prosecutors and the defense at Wilson’s sentebncign trial and faces up to a year and a half in prison.