# Light

> Represents a source of light.

## API Reference

> Source set: Common

```kotlin
public abstract class Light internal constructor()
```

Represents a source of light.

Choose [DirectionalLight](https://composables.com/jetpack-compose/androidx.compose.ui/ui/classes/DirectionalLight/api.md) for light arriving from infinitely far away, [PointLight](https://composables.com/jetpack-compose/androidx.compose.ui/ui/classes/PointLight/api.md) for a bulb at
a fixed spot, and [SpotLight](https://composables.com/jetpack-compose/androidx.compose.ui/ui/classes/SpotLight/api.md) for a bulb that only lights a cone.

## Properties

### color

> Source set: Common

```kotlin
public abstract val color: Color
```

Color emitted by this light.

The color's alpha channel scales the emitted light alongside `intensity`, so a fully
transparent color (alpha of `0`, such as `Color.Transparent`) emits no light.

### intensity

> Source set: Common

```kotlin
public abstract val intensity: Float
```

Multiplier applied to the strength of this light.

This scales the light's contribution alongside `color`'s alpha channel (`color.alpha *
intensity`). A light with an intensity of `0` contributes nothing, `1` applies `color` at its
base strength, values between `0` and `1` make the light more faint, and values greater than
`1` overdrive the light, brightening its reflection towards white.

### position

> Source set: Common

```kotlin
public open val position: LightPosition
```

Where the light sits. Position-less lights such as [DirectionalLight](https://composables.com/jetpack-compose/androidx.compose.ui/ui/classes/DirectionalLight/api.md) report an unspecified
local position.
