Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/pyzza-0.2.15/examples/arkanoid/main.py   pyzza(Download)
        self.y = field.TOTALHEIGHT - field.BRICKHEIGHT - field.PADDING
        m = Matrix()
        m.createGradientBox(self.racket_width, field.BRICKHEIGHT,
            0, -self.racket_width/4, -field.BRICKHEIGHT/4)
        self.graphics.beginGradientFill(GradientType.RADIAL,
            field.BRICKHEIGHT, field.BRICKHEIGHT, field.BRICKHEIGHT)
        self.graphics.endFill()
        m.createGradientBox(self.racket_width*3, field.BRICKHEIGHT*3,
            0, -self.racket_width/4, -field.BRICKHEIGHT/4)
        self.graphics.beginGradientFill(GradientType.RADIAL,
    def __init__(self, field, brickdef):
        m = Matrix()
        fullw = field.BRICKWIDTH
        fullh = field.BRICKHEIGHT
        m.createGradientBox(fullw, fullh, 0, -fullw/4, -fullh/4)
        self.graphics.drawRoundRect(0, 0, fullw, fullh, field.ROUND)
        self.graphics.endFill()
        m.createGradientBox(fullw*3, fullh*3, 0, -fullw/4, -fullh/4)
        self.graphics.beginGradientFill(GradientType.RADIAL,
            [0xFFFFFF, brickdef.color], #colors