# Function: derivePigments()

[**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) / derivePigments


# Function: derivePigments() {#function-derivepigments}


> **derivePigments**(`composition`, `diet`, `inputs`): [`PigmentConcentrations`](https://jonbogaty.com/lifecycle-kit/api/pigment/interfaces/pigmentconcentrations/index.md)

Defined in: [pigment/pigments.ts:74](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/pigment/pigments.ts#L74)

Derive pigment concentrations from tissue composition, diet history and
exposure.

Each concentration is a real biological driver, not a blend of everything:
melanin never sees diet, carotenoid never sees genetics, and so on. That
separation is what makes the two required assays possible — a diet change
moves carotenoid and nothing else; a UV change moves melanin and nothing
else.


## Parameters {#parameters}



### composition {#composition}


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


### diet {#diet}


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


### inputs {#inputs}


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


## Returns {#returns}


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