Implemented limit for higher efficiency

This commit is contained in:
Maximilian Giller 2019-03-02 08:53:28 +01:00
parent 66195a9655
commit 63b33f44cc

View file

@ -8,12 +8,15 @@ class DesignEntity (object):
self.pos = (0, 0)
self.mask = mask
self.__init_image__()
self.__finished_image__ = False
def __init_image__ (self, color = 'white'):
self.__image__ = Image.new('RGB', self.size, color=color)
def get_image (self):
if self.__finished_image__ is False:
self.__finish_image__()
self.__finished_image__ = True
return self.__image__
def draw (self, subimage, pos, mask=False):