---
title: "init(cgColor:intensity:attenuationRadius:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/pointlightcomponent/init(cgcolor:intensity:attenuationradius:)"
---

# init(cgColor:intensity:attenuationRadius:)

Creates a new instance with the specified color, intensity and attenuation.

## Declaration

```swift
init(cgColor: CGColor, intensity: Float = 26963.76, attenuationRadius: Float = 10.0)
```

## Parameters

- `cgColor`: The color of the light.
- `intensity`: The light’s brightness.
- `attenuationRadius`: The distance from the light source where its intensity reaches zero. Any objects at or beyond this distance do not receive illumination.
