# (C) Copyright ReportLab Inc. 1998-2000. from pingo import * def getDrawing1(): """This demonstrates the basic PINGO shapes. There are no groups or references. Each solid shape should have a purple fill.""" D = Drawing(400, 200, fill=colors.purple) D.add(Line(10,10,390,190)) D.add(Circle(100,100,20)) D.add(Circle(200,100,20)) D.add(Circle(300,100,20)) D.add(PolyLine([120,10,130,20,140,10,150,20,160,10, 170,20,180,10,190,20,200,10])) D.add(Polygon([300,20,350,20,390,80,300,75, 330, 40])) D.add(Ellipse(50, 150, 40, 20)) D.add(Rect(120, 150, 60, 30, stroke_width=2, stroke=colors.red,transform=[3,0,0,1,0,0])) #square corners D.add(Rect(220, 150, 60, 30, 10, 10)) #round corners D.add(String(10,50, 'Basic PINGO Shapes', fill=colors.black)) return D