allH2 = 100 / (wall[i + 3] * fix2)

        c = 17
        H = 150
        tl = [wall[i] * c, H - wallH1 * h]
        tr = [wall[i + 2] * c, H - wallH2 * h]
        br = [wall[i + 2] * c, tr[1] + wallH2 * 2]
        bl = [wall[i] * c, tl[1] + wallH1 * 2]

        shade1 = floor((wallH1 * c1 + c2) * c3)
        if shade1 > 255:
            shade1 = 255
        shade2 = floor((wallH2 * c1 + c2) * c3)
        if shade2 > 255:
            shade2 = 255

        linGrad = canvas.createLinearGradient(tl[0], 0, tr[