el rect se usa para dibujar rectangulos o cuadrados.Necesita x, y para la posicion, width para el ancho y height para la altura.