Surface = { -- test data {type='rect', x=50,y=50, width=20,height=80, r=1,g=0,b=0}, {type='line', data={0,0, 0,600}}, {type='line', data={0,0, 800,0}}, {type='text', data='0', x=-20,y=-20}, {type='circle', x=300,y=200, radius=40, r=1,g=0,b=1}, {type='arc', x=0,y=0, radius=50, angle1=0, angle2=math.pi*2/3}, {type='ellipse', x=100,y=100, radiusx=10, radiusy=50}, {type='bezier', data={25,25, 25,125, 75,25, 125,25}}, }