def __init__(self):
        super(TestLayer, self).__init__()
        self.add( ProbeRect(w_ini, h_ini, (0,0,255,255)), z=1)
        border_size = 10
        inner = ProbeRect(w_ini-2*border_size, h_ini-2*border_size, (255,0,0,255))
        inner.position = (border_size, border_size)
        self.add(inner, z=2 )
        outer = ProbeRect(w_ini+2*border_size, h_ini+2*border_size, (255,255,0,255))
        outer.position = (-border_size, -border_size)
        self.add(outer, z=0 )
        self.size_from_stage = [ (800, 600), (800, 640),
                                 (840, 600), (w_ini, h_ini)] 
        self.stage = 0
        self.do( Repeat( Delay(4) + CallFunc(self.rotate_sizes)))
dataset/ETHPy150Open los-cocos/cocos/test/test_aspect_ratio_on_resize.py/TestLayer.__init__/original