예제 #1
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.image = img.IndexedImage(self,
                                   width=mrc.Ref('width'),
                                   height=mrc.Ref('height'),
                                   source=mrc.Ref('image_data'),
                                   frame_count=mrc.Ref('count'),
                                   palette=ibm_pc.EGA_DEFAULT_PALETTE)
     self.mask = img.IndexedImage(self,
                                  width=mrc.Ref('width'),
                                  height=mrc.Ref('height'),
                                  source=mrc.Ref('mask_data'),
                                  frame_count=mrc.Ref('count'),
                                  palette=ibm_pc.EGA_DEFAULT_PALETTE)
예제 #2
0
 def __init__(self, *argc, **argv):
     self.image = img.IndexedImage(self,
                                   mrc.Ref('_data.data'),
                                   mrc.Ref('pitch'),
                                   mrc.Ref('initial_rect.height'),
                                   palette=DIRECTOR_PALETTE)
     super().__init__(*argc, **argv)
예제 #3
0
파일: lomax.py 프로젝트: rvanlaar/mrcrowbar
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.image = img.IndexedImage(self,
                                   width=mrc.Ref('width'),
                                   height=mrc.Ref('height'),
                                   source=mrc.Ref('raw_data'),
                                   palette=mrc.Ref('_parent.palette'))
예제 #4
0
 def __init__(self, *args, **kwargs):
     mrc.Block.__init__(self, *args, **kwargs)
     self.image = img.IndexedImage(self,
                                   width=320,
                                   height=200,
                                   palette=mrc.Ref('palette'),
                                   source=mrc.Ref('image_data'))
예제 #5
0
 def __init__(self, *args, **kwargs):
     mrc.Block.__init__(self, *args, **kwargs)
     self.image = img.IndexedImage(self,
                                   width=320,
                                   height=200,
                                   palette=ibm_pc.EGA_DEFAULT_PALETTE,
                                   source=mrc.Ref('image_data'))
예제 #6
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.image = img.IndexedImage(self,
                                   width=960,
                                   height=160,
                                   source=mrc.Ref('image_data'),
                                   palette=mrc.Ref('palette_vga'))
예제 #7
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.image = img.IndexedImage(self,
                                   mrc.Ref('data'),
                                   mrc.Ref('width'),
                                   mrc.Ref('height'),
                                   palette=KLIK_PALETTE)
예제 #8
0
 def __init__( self, *args, **kwargs ):
     super().__init__( *args, **kwargs )
     self.tiles = img.IndexedImage( 
                     self,
                     width=32, height=32,
                     source=mrc.Ref( 'image_data' ),
                     frame_count=mrc.Ref( '_parent._parent._egahead.tile32_count' ),
                     palette=ibm_pc.EGA_DEFAULT_PALETTE
                 )
예제 #9
0
 def __init__( self, *args, **kwargs ):
     super().__init__( *args, **kwargs )
     self.image = img.IndexedImage(
                     self,
                     width=32,
                     height=32,
                     source=mrc.Ref( 'data' ),
                     palette=YODA_PALETTE,
                 )
예제 #10
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.image = img.IndexedImage(
         self,
         width=mrc.Ref('_parent.width'),
         height=mrc.Ref('_parent.height'),
         source=mrc.Ref('image_data'),
         frame_count=mrc.Ref('_parent.end_frame'),
         palette=mrc.Ref('_parent._parent.palette'),
         mask=mrc.Ref('mask_data'))
예제 #11
0
 def __init__(self, width, height, bpp, frame_count, *args, **kwargs):
     self.width = width
     self.height = height
     self.bpp = bpp
     self.frame_count = frame_count
     self.image = img.IndexedImage(self,
                                   width=width,
                                   height=height,
                                   source=mrc.Ref('image_data'),
                                   frame_count=frame_count,
                                   palette=LEMMINGS_VGA_DEFAULT_PALETTE)
     super().__init__(*args, **kwargs)