<s> from math import sin , cos , pi <EOL> import pg <EOL> class Window ( pg . Window ) : <EOL> def setup ( self ) : <EOL> sheet = pg . SpriteSheet ( <NUM_LIT:0> , '<STR_LIT>' ) <EOL> self . batch = pg . SpriteBatch ( sheet ) <EOL> n = <NUM_LIT:1000> <EOL> for y in range ( - n , n + <NUM_LIT:1> , <NUM_LIT:64> ) : <EOL> for x in range ( - n , n + <NUM_LIT:1> , <NUM_LIT:64> ) : <EOL> sprite = sheet . star ( self . batch ) <EOL> sprite . position = ( x , y ) <EOL> def update ( self , t , dt ) : <EOL> for sprite in self . batch . sprites : <EOL> sprite . rotation = - t * <NUM_LIT:4> <EOL> def draw ( self ) : <EOL> w , h = self . size <EOL> w , h = w / <NUM_LIT:2> , h / <NUM_LIT:2> <EOL> matrix = pg . Matrix ( ) . orthographic ( - w , w , - h , h , - <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> self . clear ( ) <EOL> self . batch . draw ( matrix ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> pg . run ( Window ) </s>
