def getAlongWayHexadecimalPrimary(beginBrightness, beginRatio, colorWidth, endBrightness, endRatio):
 brightness = ((beginRatio * float(beginBrightness)) + (endRatio * float(endBrightness)))
 return getWidthHex(int(round(brightness)), colorWidth)

def getAlongWayHexadecimalPrimary ( beginBrightness , beginRatio , colorWidth , endBrightness , endRatio ) : brightness = ( ( beginRatio * float ( beginBrightness ) ) + ( endRatio * float ( endBrightness ) ) ) return getWidthHex ( int ( round ( brightness ) ) , colorWidth )
get a primary color along the way from grey to the end color .