A Washington State man in February texted to his friends pictures of a partially naked woman on his bed, according to police documents.

The man, Brian Varela, said in the texts that he believed that the woman was overdosing, but bragged that he had had sex with her and that he could do so again. Mr. Varela, who was 19 at the time, then started to play a video game, and fell asleep. When he woke up, the woman, Alyssa Noceda, 18, was dead.

On Thursday, Mr. Varela was sentenced to about three years in prison after he had pleaded guilty to felony charges that included second-degree manslaughter and third-degree rape.

The 34-month sentence was seen by members of Ms. Noceda’s family and others as woefully inadequate, and drew sharp complaints.