#Graphite Pencil
The graphite pencil implementation and demonstration in Qt and JavaScript.
The project was originally intended to implement the graphite pencil. But as time goes by, more and more ideas pop out of my mind. I want to make it a little more interesting rather than just a graphtie pencil demostration.
The TODOs is devided into two main groups.
-
When the mouse moves fast, the line drawn by the graphite pencil would not be continuous since the sampling process of the mouse coordinate only executes in a specific period of time. A proper solution is to use proper interpolation to make the line looks more continuous.
-
Given a path, use graphite pencil to draw with the path.
-
Given an area, use graphite pencil to fill the area in a proper way.
-
Find a better way to use graphite pencil effect to shadow a given image.
-
Find a better way to accomplish the edge detection and make it accord to the shadow of the given image.
-
Implement blender and eraser.
-
Layers.
-
Design a better user interface. The current version is only for testing, which is not user-friendly or can be called as art.
-
Add blender and eraser functionality.
-
Add selection functionality.
-
Uses layer buffer to hold layer pixel information. Then when it comes to rendering needs, calculate the pixel color combined with color of each layer and alpha channel.