// FilledRectangle draws a filled rectangle given a point, width and height
FilledRectangle draws a filled rectangle given a point, width and height
// FilledRectangle draws a filled rectangle given a point width and height
func FilledRectangle(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")
	}
	for i := x; i < x+w; i++ {
		Line(display, i, y, i, y+h-1, color)
	}
	return nil
}
func FilledRectangle ( display drivers . Displayer , x int16 , y int16 , w int16 , h int16 , color color . RGBA ) error { if w <= 0 || h <= 0 { return errors . New ( " " ) } for i := x ; i < x + w ; i ++ { Line ( display , i , y , i , y + h - 1 , color ) } return nil }
FilledRectangle draws a filled rectangle given a point, width and height
FilledRectangle draws a filled rectangle given a point width and height