# Function: paletteRamp()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [pigment](https://jonbogaty.com/lifecycle-kit/api/pigment/readme/index.md) / paletteRamp


# Function: paletteRamp() {#function-paletteramp}


> **paletteRamp**(`composition`, `pigments`, `surface`): [`PaletteRamp`](https://jonbogaty.com/lifecycle-kit/api/pigment/interfaces/paletteramp/index.md)

Defined in: [pigment/palette.ts:89](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/pigment/palette.ts#L89)

Build the palette ramp the assemblage stage shades a form with.

`surfaceOf`-style metallic/roughness/opacity are element-mass-weighted from
the same composition, so a mineral-rich body is genuinely glossier and a
lipid-rich one genuinely more matte — the surface reads what the body is
made of rather than being painted on.


## Parameters {#parameters}



### composition {#composition}


[`Composition`](https://jonbogaty.com/lifecycle-kit/api/chem/type-aliases/composition/index.md)


### pigments {#pigments}


[`PigmentConcentrations`](https://jonbogaty.com/lifecycle-kit/api/pigment/interfaces/pigmentconcentrations/index.md)


### surface {#surface}


[`SurfaceProperties`](https://jonbogaty.com/lifecycle-kit/api/pigment/interfaces/surfaceproperties/index.md)


## Returns {#returns}


[`PaletteRamp`](https://jonbogaty.com/lifecycle-kit/api/pigment/interfaces/paletteramp/index.md)
