<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PointLightComponent/init(cgColor:intensity:attenuationRadius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19PointLightComponentV7cgColor9intensity17attenuationRadiusACSo10CGColorRefa_S2ftcfc"
  },
  "title" : "init(cgColor:intensity:attenuationRadius:)"
}
-->

# init(cgColor:intensity:attenuationRadius:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)