Spatial and temporal laser pulse shaping for two color excitation