Mouse input as drawing tool?

Need some code that enables a user to draw in 2D on the screen “surface” using the mouse as input. Any help would be appreciated.

Thanks!

RagePixel is open source, give it a look, Juha Kiili did an excellent job.

Thanks… RagePixel looks great, but I may haven’t been specific enough in my request. When I run the program, I want the user to be able to draw on a 2D texture with a mouse “click and hold” input.

Thanks in advance!