// Attached the legs onto the base (likely body). func (skin *mcSkin) addLegs(base, legs *image.NRGBA) *image.NRGBA { base.Pix = append(base.Pix, make([]uint8, LlHeight*base.Stride)...) base.Rect.Max.Y += LlHeight fastDraw(base, legs, LaWidth, HeadHeight+TorsoHeight) return base }
// Rams the head onto the base (hopefully body...) to return a Frankenstein. func (skin *mcSkin) addHead(base, head *image.NRGBA) *image.NRGBA { base.Pix = append(make([]uint8, HeadHeight*base.Stride), base.Pix...) base.Rect.Max.Y += HeadHeight fastDraw(base, head, LaWidth, 0) return base }