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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Clears the surface completely with a colour.
Colour is tuple (R, G, B, A)

src/p/y/pygame-fenix-HEAD/examples/size_angle_alpha.py   pygame-fenix(Download)
 
        self.graph = Program.new_map(100,100)
        Program.map_clear(self.graph, (randrange(50, 200), randrange(50, 200), randrange(50, 200)))
 
        direction = randrange(0, 2)

src/s/c/scavenger-HEAD/main.py   scavenger(Download)
				if counter < -20:
					mask = Program.new_map(Program.screen.get_width(), Program.screen.get_height())
					Program.map_clear(mask, (0,0,0))
 
					while counter > -27:
	def begin(self, game):
		self.x = self.father.x
		self.y = self.father.y -8
		self.graph = Program.new_map(27, 575)
		Program.map_clear(self.graph, (0, 0, 0))
					self.prev_hold -= 1
 
				Program.map_clear(self.graph, (0, 0, 0))
				height = int(575 * self.prev_hold / game.player.max_hold)
				self.graph.fill((0, 150, 190), rect = ((0, 575 - height), (27, height)))
	def begin(self, game):
		self.x = self.father.x
		self.y = self.father.y -8
		self.graph = Program.new_map(27, 575)
		Program.map_clear(self.graph, (160, 45, 45))
					self.prev_hull -= 1
 
				Program.map_clear(self.graph, (0, 0, 0))
				height = int(575 * self.prev_hull / game.player.max_hull)
				self.graph.fill((160, 45, 45), rect = ((0, 575 - height), (27, height)))