Drag the mouse to draw a line

Source code

RandomColors.java