def setTripleColor (self, group, color1, color2, color3):
        for item in group:
            perX = (item.x - self.minX) / (self.maxX - self.minX)
            perY = (item.y - self.minY) / (self.maxY - self.minY)
            c1 = color2.interpolate (color3, perX)
            c2 = color2.interpolate (color1, perY)
            per = (perY + (1 - perX)) / 2.0
            c = c1.interpolate (c2, per)
            item.style.fill = c 
            item.xml['highlight-fill'] = c.interpolate (white, .35)
dataset/ETHPy150Open dotskapes/dotSkapes/modules/savage/graph/canvas.py/ScatterCanvas.setTripleColor/original