def compute(self, recipe=1):
        """Don't be confused: the notion of a recipe is just for fun here.
        It has nothing to do with lightmaps -- it's just to experiment
        with example 'ascii lighting' for more interesting visualizations.
        """
        self.lighting = []
        pixels = self.height * self.width
        if recipe == 1:
            for k in xrange(pixels):
                self.lighting.append(rr(0, 255))
        elif recipe == 2:
            for k in xrange(pixels):
                self.lighting.append(rr(0, (k + 1) * 5))
        elif recipe == 3:
            for k in xrange(pixels):
                if self.height < self.width:
                    self.lighting.append(rr(self.width, self.height))
                else:
                    self.lighting.append(rr(self.height, self.width))
dataset/ETHPy150Open christabor/MoAL/MOAL/data_structures/other/lightmap.py/Lightmap.compute/swapped operands of `<`