// Rectangle draws a rectangle given a point, width and height
Rectangle draws a rectangle given a point, width and height
// Rectangle draws a rectangle given a point width and height
func Rectangle(display drivers.Displayer, x int16, y int16, w int16, h int16, color color.RGBA) error {
	if w <= 0 || h <= 0 {
		return errors.New("empty rectangle")
	}
	Line(display, x, y, x+w-1, y, color)
	Line(display, x, y, x, y+h-1, color)
	Line(display, x+w-1, y, x+w-1, y+h-1, color)
	Line(display, x, y+h-1, x+w-1, y+h-1, color)
	return nil
}
func Rectangle ( display drivers . Displayer , x int16 , y int16 , w int16 , h int16 , color color . RGBA ) error { if w <= 0 || h <= 0 { return errors . New ( " " ) } Line ( display , x , y , x + w - 1 , y , color ) Line ( display , x , y , x , y + h - 1 , color ) Line ( display , x + w - 1 , y , x + w - 1 , y + h - 1 , color ) Line ( display , x , y + h - 1 , x + w - 1 , y + h - 1 , color ) return nil }
Rectangle draws a rectangle given a point, width and height
Rectangle draws a rectangle given a point width and height