LightPosition.Local


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
Cmn
open String
Cmn

Public properties

open DpOffset

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

Cmn

Public constructors

Local

Local(offset: DpOffset)
Parameters
offset: DpOffset

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

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

offset

open val offset: DpOffset

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