draw domain colouring of square function