This is the simplest form of the Graffiti Library. With just the few lines of code shown below, you are up and running with basic drawing functionality.
import com.nocircleno.graffiti.GraffitiCanvas;
import com.nocircleno.graffiti.tools.BrushTool;
import com.nocircleno.graffiti.tools.BrushType;
var canvas:GraffitiCanvas = new GraffitiCanvas(400, 340, 10);
addChild(canvas);
var brush:BrushTool = new BrushTool(8, 0xFF0000, 1, 0, BrushType.DIAMOND);
canvas.activeTool = brush;