Goal: How do you paint with a spray can of paint?

Which of the following methods is more reasonable for accomplishing this goal?
Shake the can up well and remove the top; then point can at item to be painted and press down on the tip covering item to be painted and stop.