docs: def cropRect(rect, cropTop, cropBottom, cropLeft, cropRight):
  	"""
  	Crops a rectangle by the specified number of pixels on each side.
  	
  	The input rectangle and return value are both a tuple of (x,y,w,h).
  	"""
  	
  	# Unpack the rectangle
  	x, y, w, h = rect
  	
  	# Crop by the specified value
  	x += cropLeft
  	y += cropTop
  	w -= (cropLeft + cropRight)
  	h -= (cropTop + cropBottom)
  	
  	# Re-pack the padded rect
  	return (x,y,w,h)