The pencil style uses a "color dodge" technique: a grayscale image is combined with a blurred image to create a pencil sketch.
The line art is extracted using the Sobel operator and binarized.
The charcoal pencil adds noise and contrast to the edges to simulate the feel of rough paper.