# @dioramajs/diorama/render

Exports of @dioramajs/diorama/render.

## Functions and values

- [cssColor](/docs/api/diorama-render/css-color.md): Any CSS colour as '#rrggbb', which three's `Color.setStyle` parses. Alpha is dropped. Hex, rgb() and hsl() in both syntaxes and colour names are parsed here; other colour spaces go through a canvas, so they need a browser. Undefined for what is not a colour.
- [render](/docs/api/diorama-render/render.md): Three.js on the stage canvas. At z = 0 one world unit is one CSS pixel, so objects line up with the DOM and depth still reads as real perspective.

## Types

- [Box](/docs/api/diorama-effects/types/box.md): A viewport box in CSS px, as anchors report it.
- [EnvironmentLease](/docs/api/diorama-render/types/environment-lease.md): A lease on `scene.environment`, see `RenderApi.environment`.
- [RenderApi](/docs/api/diorama-render/types/render-api.md): The `render` service: the three.js renderer, scene and camera.
- [RenderOptions](/docs/api/diorama-render/types/render-options.md): Options of the `render` plugin.
