def __init__(self, theCanvas): SimpleCanvasDemo.__init__(self, theCanvas) self.numParticles = 20 self.particles = [] self.takeBenchmarks = False self.width = 400 self.height = 300 self.canvas = theCanvas self.demoName = "Particle Demo" self.run = False
def __init__(self, theCanvas): SimpleCanvasDemo.__init__(self, theCanvas) self.height = 400 self.width = 600 self.demoName = "Pyjamas Logo" """ * Reference to our ImageHandle that gets initialized on the callback from * ImageLoader. """ self.img = None self.rotation = 0.1 self.run = False
def __init__(self, theCanvas): SimpleCanvasDemo.__init__(self, theCanvas) self.width = 350 self.height = 350 self.demoName = "Feature Suite" self.run = False
def __init__(self, theCanvas): SimpleCanvasDemo.__init__(self, theCanvas) self.width = 400 self.height = 400 self.demoName = "Gradients"
def __init__(self, theCanvas): SimpleCanvasDemo.__init__(self, theCanvas) self.width = 400 self.height = 400 self.demoName = "Static Scene"