1. A projector comprising: a projection section adapted to project a projection image on a projection surface including a target part; a detection section adapted to detect a distance from a predetermined position to the target part; and a control section adapted to set an area to be projected on the projection surface other than the target part out of the projection image as a partial area based on the distance, and change a display state of the projection image so that the partial area set is masked.