forked from: PaintSample

