> Documentation index: https://developer.android.com/reference/llms.txt

# LightPosition.Local

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/lighting/Light.kt+class:androidx.compose.ui.lighting.LightPosition.Local) Added in [1.14.0-alpha01](https://developer.android.com/jetpack/androidx/releases/compose-ui.md.txt#1.14.0-alpha01) Common/All
- Cmn

  ```
  class LightPosition.Local : LightPosition
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.lighting.LightPosition](https://developer.android.com/reference/kotlin/androidx/compose/ui/lighting/LightPosition.md.txt) ||
|   | ↳ | [androidx.compose.ui.lighting.LightPosition.Local](https://developer.android.com/reference/kotlin/androidx/compose/ui/lighting/LightPosition.Local.md.txt) |

*** ** * ** ***

A position measured from the top-left corner of the composable being lit.

The light is part of that composable and moves with it, so the shading does not change as the composable is scrolled or repositioned. This is the cheapest option, as no coordinate conversion is required.

## Summary

| ### Public constructors |
|---|---|
| `Local(offset: DpOffset)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator Boolean` | `equals(other: Any?)` | Cmn |
| `open Int` | `hashCode()` | Cmn |
| `open String` | `toString()` | Cmn |

| ### Public properties |
|---|---|---|
| `open DpOffset` | `offset` position of the light relative to the lit composable's top-left corner. | Cmn |

## Public constructors

### Local

Cmn Added in [1.14.0-alpha01](https://developer.android.com/jetpack/androidx/releases/compose-ui.md.txt#1.14.0-alpha01)

```
Local(offset: DpOffset)
```

| Parameters |
|---|---|
| `offset: DpOffset` | position of the light relative to the lit composable's top-left corner. |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### offset

Cmn

```
open val offset: DpOffset
```

position of the light relative to the lit composable's top-left corner.