# LightPosition.Local

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

## API Reference

> Source set: Common

```kotlin
public class Local(override val offset: DpOffset) : LightPosition()
```

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.

#### Parameters

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

## Functions

### equals

> Source set: Common

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Common

```kotlin
override fun hashCode(): Int
```

### toString

> Source set: Common

```kotlin
override fun toString(): String
```
