init(cgColor:intensity:attenuationRadius:)
Creates a new instance with the specified color, intensity and attenuation.
Declaration
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.