# ParticleSystem.ColorBySpeedModule

> Script interface for the ColorBySpeedModule.

## Definition

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

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

## Remarks

This module assigns colors to the particles based on the speed that they are travelling.

Additional Resources: [ParticleSystem](/engine/6000.7/script-reference/unityengine/particlesystem.md), [\_colorBySpeed](/engine/6000.7/script-reference/unityengine/particlesystem/colorbyspeed.md)

## Properties

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