Source set: Common
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
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int
toString
Source set: Common
override fun toString(): String