How to use mouse or motionctroller to draw?

Like use the chalk write on the blackboard,I want to use the mouse or motionctroller to do that.I think the important is how to put the texture on a plane,then use the eventtick to arrive the writing effect. maybe what I thought is too simple,so is there anybody has an idea? thanks~~tell me how to realize it?