fbpx

InterpolateRGBColors (MDX+)

Returns the interpolated colors using the RGB color space.

Parameters

Name Type Cardinality Default value
position  value-expression  one   
color-palette  value-expression  zero-n   

Return

color

Description

The function returns a color interpolated from the color palette. Interpolation is done linearly in the RGB color space.

The position is a numeric between 0.0 and 1.0 used to define the position in the palette (0.0 first, 1.0 last).

InterpolateRGBColors( 0.25, RGB("#FFA78F") /* 0 position */, RGB("#FFD9CF") /* 1/3 */, RGB("#FFFFFF") /* 2/3 */,RGB("#BDC9E4") /* 1 */ ) will return a color interpolated between the first and second colors.

Remember a color is an integer in the MDX world.

See Also

InterpolateHSVColors

Examples

Special Examples (errors, null, ...)

XMLA Properties

Find here the value of the XMLA properties when not specified otherwise.