2D graphics sample