a No Circle No! Project

Graffiti ActionScript 3 Bitmap Drawing Library

Graffiti Overview >>

Basic Example with the Graffiti Library 2.5

Yep, this is Flash Content.

Get Adobe Flash player

Description

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;

Download Source Files