# operator *

> Multiplies two colors together. Each component is multiplied separately.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## operator \*(Color, Color)

Multiplies two colors together. Each component is multiplied separately.

```csharp
public static Color operator *(Color a, Color b)
```

### Parameters

**** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.7/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color grayColor = Color.gray * Color.white;
    }
}
```

## operator \*(Color, Vector4)

Multiplies two colors together. Each component is multiplied separately.

```csharp
public static Color operator *(Color a, Vector4 b)
```

### Parameters

**** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.7/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color grayColor = Color.gray * Color.white;
    }
}
```

## operator \*(Color, float)

Multiplies color `a` by the float `b`. Each color component is scaled separately.

```csharp
public static Color operator *(Color a, float b)
```

### Parameters

**** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.7/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color whiteColor = Color.gray * 2;
    }
}
```

## operator \*(float, Color)

Multiplies color `a` by the float `b`. Each color component is scaled separately.

```csharp
public static Color operator *(float b, Color a)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.7/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color whiteColor = 2 * Color.gray;
    }
}
```
