in reply to Draw a line

Pick up a pen. Place on surface. Move hand.

Honestly, what the hell kind of question is this? If you would specify a tool kit, what you've tried and what you're desired results are, maybe we could actually *help* you (then again, considering who it is..). As is, you've posted a worthless question because we have no way of answering, short of blind guessing.

If you want to ask a question, first do a google search to see if you can find the information on your own. Next try to experiment on your own. Try various methods and see if you can't muddle your way to a solution. Thirdly you may ask an *intelligent* question on perlmonks or some other forum. Intelligent means you've documented what you want, what you've tried and what, if any constraints you have. Then some body could actually reply with a decent response.