0], 0)
        c11, c12 = 0, 0
        if face[i // 4] %2 == 0:
            c11, c12 = shade1, shade2
        c21, c22 = 0, 0
        if face[i // 4] == 1:
            c21, c22 = shade1, shade2
        c31, c32 = 120, 120
        if face[i // 4] == 2:
            c31, c32 = shade1, shade2
        linGrad.addColorStop(0, 'rgba(%s,%s,%s,1.0)' %(c11, c21, c31))
        linGrad.addColorStop(1, 'rgba(%s,%s,%s,1.0)' %(c12, c22, c32))

        canvas.beginPath()
        canvas.moveTo(tl[0], tl[1])
        canvas.l