code: func (pd *PictureData) Index(at Vec) int {
  	at = at.Sub(pd.Rect.Min.Map(math.Floor))
  	x, y := int(at.X), int(at.Y)
  	return y*pd.Stride + x
  }
docs: // Index returns the index of the pixel at the specified position inside the Pix slice.