Drawing App

This drawing app implemented using Openframeworks. The lines created using Polylines, ofDrawLine, and ofPoint. Line class consists of two points that define the beginning and end of the line. Two vectors called Lines and Drawnlines are defined. The draw() method connects two points of the line. In the mouseDragged() function, every time the mouse is dragged it saves the position of the mouse in the DrawnPoints vector. Then we take the current position of the mouse and compare it with all its previous positions. If the distance between the current position and the previous one is less than 30 pixels, we create a line between them. This method creates a nested effect on the lines we draw. Using ofxGui we put sliders to control the size and color of the line and color of the background.
Github Source Code