resample stroke