for i in range (0, 16, 2):
    grid1.drawCircle(4,4-8,i+1)
    grid2.drawCircle(4,4,i+1)
    grid3.drawCircle(4,4+8,i+1)
    grid1.writeDisplay()
    grid2.writeDisplay()
    grid3.writeDisplay()
    time.sleep(.05)
grid1.clear()
grid2.clear()
grid3.clear()

for i in range (0,8):
    grid1.drawCircle(4,4,i+1)
    grid2.fillCircle(4,4,i+1)
    grid3.drawPixel(i,0)
    grid1.writeDisplay()
    grid2.writeDisplay()
    grid3.writeDisplay()
    time.sleep(.05)
    grid1.clear()
    grid2.clear()
    grid3.clear()
    
for i in range (0,8):
    grid1.drawPixel(0,i)
    grid2.drawTriangle(0,0,7,i,0,7)
    grid3.fillTriangle(7,7,0,i,7,0)
    grid1.writeDisplay()
    grid2.writeDisplay()
示例#2
0
for i in range(0, 16, 2):
    grid1.drawCircle(4, 4 - 8, i + 1)
    grid2.drawCircle(4, 4, i + 1)
    grid3.drawCircle(4, 4 + 8, i + 1)
    grid1.writeDisplay()
    grid2.writeDisplay()
    grid3.writeDisplay()
    time.sleep(.05)
grid1.clear()
grid2.clear()
grid3.clear()

for i in range(0, 8):
    grid1.drawCircle(4, 4, i + 1)
    grid2.fillCircle(4, 4, i + 1)
    grid3.drawPixel(i, 0)
    grid1.writeDisplay()
    grid2.writeDisplay()
    grid3.writeDisplay()
    time.sleep(.05)
    grid1.clear()
    grid2.clear()
    grid3.clear()

for i in range(0, 8):
    grid1.drawPixel(0, i)
    grid2.drawTriangle(0, 0, 7, i, 0, 7)
    grid3.fillTriangle(7, 7, 0, i, 7, 0)
    grid1.writeDisplay()
    grid2.writeDisplay()