Use mouse draw line in the 2D,how to do?

any idea for line separate?or size for draw line?