xlordt
public python v1 · immutableindex = 0pos_x, pos_y = 0, 20rows = []clr = [([255, 0, 0]), ([0, 255, 0])]for x in range( 20 ) : if x / 10 == 1: index = index / 1; pos_x = 0; pos_y = 30 l = [( clr[index], [ pos_x * 16, pos_y ] )] rows.extend( l ) pos_x += 1 for colors, pos in rows : objrects = Objects( colors, pos ) objgroup.add( objrects )