straight line drawing with clicks