rlmesh.View

classfrom rlmesh import View[source]

How to show a live eval. Pass to run / session as view=.

View(
    backend: str = 'terminal',
    port: int = 8008,
    fps: int = 30,
    source: str | None = None,
    format: str = 'jpeg',
    quality: int = 75,
)

The common cases are the string shorthands "terminal" / "http" / "http:9000" / "both"; construct a View directly only to tune.

backend

attribute[source]
backend: str

Where to draw – "terminal" (in-place half-blocks), "http" (a local web page), or "both".

port

attribute[source]
port: int

HTTP port for the "http" / "both" backends.

fps

attribute[source]
fps: int

Target frame rate; frames produced faster are dropped.

source

attribute[source]
source: str | None

Which source to show first by label (a render label or an image role); None shows the first available.

format

attribute[source]
format: str

Encoding for HTTP frames, "jpeg" or "png".

quality

attribute[source]
quality: int

JPEG quality 1..100 (ignored for PNG).