16×16 Duck Pixel Tool

Paint pixels, then click “Export JS”. The code draws this sprite on an HTML5 canvas: drawDuck(ctx, x, y, pixelSize).