# Interface: Light

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [assemblage](https://jonbogaty.com/lifecycle-kit/api/assemblage/readme/index.md) / Light


# Interface: Light {#interface-light}


Defined in: [assemblage/light.ts:12](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/assemblage/light.ts#L12)

A directional light in the same abstract space the forms live in.


## Properties {#properties}



### ambient {#ambient}


> `readonly` **ambient**: `number`

Defined in: [assemblage/light.ts:22](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/assemblage/light.ts#L22)

Floor brightness on the unlit side, 0..1.

A design constraint rather than a physical one: a creature has to stay
readable everywhere, and a physically honest zero would put half of a
small sprite into an unreadable silhouette.

***


### direction {#direction}


> `readonly` **direction**: [`Vec2`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/vec2/index.md)

Defined in: [assemblage/light.ts:14](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/assemblage/light.ts#L14)

Direction the light travels. Need not be normalised.
