def rampDensify(startColor, endColor, steps):

    colorSteps = []
    
    # color conversion utils
    f2c = lambda f: int(f * 255.0) & 0xff
    c2f = lambda c: float(c) / 255.0
    
    # start color...
    #print(startColor)
    r1 = c2f(startColor[0])
    g1 = c2f(startColor[1])
    b1 = c2f(startColor[2])
    
    # end color...
    #print(endColor)
    r2 = c2f(endColor[0])
    g2 = c2f(endColor[1])
    b2 = c2f(endColor[2])
 
    # generate a gradient of one step from color to color:
    delta = 1.0 / steps
    for j in range(int(steps)):
        t = j * delta
        a = 1.0
        r = (1.0 - t) * r1 + t * r2
        g = (1.0 - t) * g1 + t * g2
        b = (1.0 - t) * b1 + t * b2
        
        color = [f2c(r), f2c(g), f2c(b)]
        #print(color)
        colorSteps.append(color)

    return colorSteps


#def rampDensify_colour(startColor, endColor, steps):
#
#    colorSteps = []
#    
#    
#    factor = 1.0/255.0
#    start  = colour.Color(red=(startColor[0]*factor), green=(startColor[1]*factor), blue=(startColor[2]*factor))
#    end    = colour.Color(red=(endColor[0]*factor), green=(endColor[1]*factor), blue=(endColor[2]*factor))
#
#    for color in list(start.range_to(end, steps)):
#        colorSteps.append(hexToRGB(color.get_hex_l()))
#
#    return colorSteps
dataset/ETHPy150Open nasa-gibs/onearth/src/scripts/SLDtoColorMap.py/rampDensify/original