Creating Cartoons for Linear and Quadratic Functions