---
title: "PxrMix"
canonical: "https://rmanwiki-26.pixar.com/space/REN26/19661661/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://352c5bf4-b204-466d-b405-5fadecdf3149) | ![pxrMix_025mix.jpg](media://011b3f8e-6dc2-48aa-94ca-cf05f6120feb) | ![pxrMix_050mix.jpg](media://09736197-982a-48d7-a169-6da81d5cef80) | ![pxrMix_075mix.jpg](media://da2e8d75-d473-4f7b-b839-6bde76927d5f) | ![pxrMix_100mix.jpg](media://8f6dc291-7693-4ede-ae39-aced7d067282) |

### 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://22f81a95-d5f1-46b5-86f0-8e7177bc0164) | ![pxrMix_color2.jpg](media://2f0bad37-27dd-4a13-820c-29d4cbd10d34) | ![pxrMix_mix.jpg](media://86485a17-1000-41df-a8ab-7a21bf7631b4) | ![pxrMix_mixed.jpg](media://aa921c3f-0a9f-4500-a53e-aa3ccc0dd12f) |

#### 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.