# sm.debugDraw.flashSphereTopDown

Flashes a sphere for a specified duration.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.debugDraw.flashSphereTopDown( center, radius?, color?, duration? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.debugDraw.md#flashspheretopdown)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `center` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The center position of the sphere. |
| `radius` *(optional)* | number | The radius of the sphere. Defaults to 0.125. |
| `color` *(optional)* | [Color](../Game-Script-Environment/Userdata/Color.md) | The color of the sphere. Defaults to white. |
| `duration` *(optional)* | number | The duration of the flash animation in seconds. Defaults to 0.5 seconds. |

## Terrain

``` { .lua .api-signature }
sm.debugDraw.flashSphereTopDown( center, radius?, color?, duration? )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.debugDraw.md#flashspheretopdown)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `center` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The center position of the sphere. |
| `radius` *(optional)* | number | The radius of the sphere. Defaults to 0.125. |
| `color` *(optional)* | [Color](../Terrain-Script-Environment/Userdata/Color.md) | The color of the sphere. Defaults to white. |
| `duration` *(optional)* | number | The duration of the flash animation in seconds. Defaults to 0.5 seconds. |
