def drawStuff(width, height):
    engine.clear()
    color = pyui.colors.yellow
    engine.drawLine(10,10, width-10,10, color)
    engine.drawLine(width-10,10, width-10,height-10, color)
    engine.drawLine(width-10,height-10, 10,height-10, color)
    engine.drawLine(10,height-10, 10,10, color)
    engine.render()
Ejemplo n.º 2
0
def drawStuff(width, height):
    engine.clear()
    color = pyui.colors.yellow
    engine.drawLine(10, 10, width - 10, 10, color)
    engine.drawLine(width - 10, 10, width - 10, height - 10, color)
    engine.drawLine(width - 10, height - 10, 10, height - 10, color)
    engine.drawLine(10, height - 10, 10, 10, color)
    engine.render()
Ejemplo n.º 3
0
def drawStuff(width, height):
    engine.clear()
    color = pyui.colors.yellow
    engine.drawLine(10, 10, width - 10, 10, color)
    engine.drawLine(width - 10, 10, width - 10, height - 10, color)
    engine.drawLine(width - 10, height - 10, 10, height - 10, color)
    engine.drawLine(10, height - 10, 10, 10, color)

    engine.drawRect(50, 50, 300, 200, pyui.colors.blue)
    engine.drawText("First Graphics Test", (50, 50), pyui.colors.white)
def drawStuff(width, height):
    engine.clear()
    color = pyui.colors.yellow
    engine.drawLine(10,10, width-10,10, color)
    engine.drawLine(width-10,10, width-10,height-10, color)
    engine.drawLine(width-10,height-10, 10,height-10, color)
    engine.drawLine(10,height-10, 10,10, color)

    engine.drawRect(50, 50, 300, 200, pyui.colors.blue)
    engine.drawText("First Graphics Test", (50,50), pyui.colors.white)
def drawGrid(grid):
    """Draw the collision grid
    """
    engine.clear()
    for x in range(0,grid.numSquaresX):
        engine.drawLine( x * grid.squareWidth, 0, 
                         x * grid.squareWidth, grid.height, pyui.colors.grey)
    for y in range(0,grid.numSquaresY):
        engine.drawLine( 0, y * grid.squareHeight, 
                         grid.width, y * grid.squareHeight, pyui.colors.grey)
    for square in grid.squares.values():
        pyui.desktop.getRenderer().drawText( "%d" % len(square.sims),
                         (square.posX+30, 580-square.posY), pyui.colors.white, flipped=1)
    engine.render()
Ejemplo n.º 6
0
 def render(self):
     engine.clear()
     engine.render()
Ejemplo n.º 7
0
 def drawStuff(self, width, height):
     engine.clear()
     engine.render()
 def drawStuff(self, width, height):
     engine.clear()
     engine.render()