# ParticleSystem.ColorBySpeedModule

> Script interface for the ColorBySpeedModule of a Particle System.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

```csharp
public struct ParticleSystem.ColorBySpeedModule
```

## Remarks

Additional Resources: [ParticleSystem](/engine/6000.0/script-reference/unityengine/particlesystem.md), [ParticleSystem.colorBySpeed](/engine/6000.0/script-reference/unityengine/particlesystem/colorbyspeed.md).

## Properties

| Property                                                                                            | Description                                                        |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [color](/engine/6000.0/script-reference/unityengine/particlesystem/colorbyspeedmodule/color.md)     | The gradient that controls the particle colors.                    |
| [enabled](/engine/6000.0/script-reference/unityengine/particlesystem/colorbyspeedmodule/enabled.md) | Specifies whether the ColorBySpeedModule is enabled or disabled.   |
| [range](/engine/6000.0/script-reference/unityengine/particlesystem/colorbyspeedmodule/range.md)     | Apply the color gradient between these minimum and maximum speeds. |
