---
title: "PxrMix"
canonical: "https://rmanwiki-27.pixar.com/space/REN27/542224229/PxrMix"
format: markdown
---
Mixes two colors together according to the specified mix percentage. The mixed color result is calculated as: `((1.0-mix) * color1) + (mix * color2)`.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| ![pxrMix_000mix.jpg](media://2f9e2b59-f957-427d-bbbc-568264403784) | ![pxrMix_025mix.jpg](media://d9788e10-7806-4340-8089-0a226cc2b41d) | ![pxrMix_050mix.jpg](media://80a538af-5398-46b9-b063-695300f05f4e) | ![pxrMix_075mix.jpg](media://f06722bf-7b3f-4f0c-b4b8-929d3ef24a62) | ![pxrMix_100mix.jpg](media://71b1b6f9-ac7a-40c8-8900-75a5a8867b3d) |

### Input Parameters

#### Color 1

The first color that is mixed with the second color.

#### Color 2

The second color that is mixed with the first color.

#### Mixer

The first color that is mixed with the second color.

|  |  |  |  |
| --- | --- | --- | --- |
| ![pxrMix_color1.jpg](media://b0e39ce7-7392-4854-b15d-3ef7a79999bb) | ![pxrMix_color2.jpg](media://8b497807-3b24-4364-b679-3a3c4217b1bb) | ![pxrMix_mix.jpg](media://a3152d33-d368-4f57-a277-53665c931329) | ![pxrMix_mixed.jpg](media://420b9b1e-b92f-4d5c-8128-7415df441676) |

#### Clamp Mixer

Keep the mix value between 0 and 1 to make sure you only get either color1 or color2 when outside of that range.

#### Output Parameters

#### resultRGB

The clamped color result.

#### resultR

The R channel from the resultRGB output.

#### resultG

The G channel from the resultRGB output.

#### resultB

The B channel from the resultRGB output.