API Reference > imodeljs-common > Symbology > ColorDef > lerp lerp Method Create a ColorDef that is the linear interpolation of this ColorDef and another ColorDef, using a weighting factor. lerp(color2: ColorDef, weight: number, result?: ColorDef): ColorDef Parameter Type Description color2 ColorDef The other color weight number The weighting factor for color2. 0.0 = this color, 1.0 = color2. result ColorDef Optional ColorDef to hold result. If undefined, a new ColorDef is created. Returns - ColorDef Defined in core/common/src/ColorDef.ts Line 434 Last Updated: 13 June, 2024