You are on page 1of 1

def circulo(R,cx,cy): glBegin(GL_LINE_LOOP) glColor3f(1.0,0.0,0.

0) for theta in arange(left, right, step): x = cx + R*cos(theta) # R=5 y = cy + R*sin(theta) print '(', x,',',y,')' #time.sleep(1) glVertex3f(x, y, 0) glEnd()

You might also like