Skip to main content

Interface: LinearTransformationSceneOptions

Defined in: src/core/LinearTransformationScene.ts:15

Options for configuring a LinearTransformationScene.

Extends​

Properties​

antialias?​

optional antialias: boolean

Defined in: src/core/Scene.ts:89

Multisample antialiasing. Turning it off roughly halves GPU fill cost on low-end and mobile GPUs, at the price of slightly jagged edges. Defaults to true.

Inherited from​

SceneOptions.antialias


autoRender?​

optional autoRender: boolean

Defined in: src/core/Scene.ts:72

Enable auto-render on add/remove. Defaults to true.

Inherited from​

SceneOptions.autoRender


autoResize?​

optional autoResize: boolean

Defined in: src/core/Scene.ts:83

Automatically resize the canvas when its container (or the window, on mobile rotation) changes size. Only active when both width and height are omitted — passing either dimension is treated as a request for a pinned canvas size, so auto-resize stays off. Defaults to true.

Inherited from​

SceneOptions.autoResize


backgroundColor?​

optional backgroundColor: string

Defined in: src/core/Scene.ts:62

Background color as CSS color string. Defaults to Manim's dark gray (#1C1C1C).

Inherited from​

SceneOptions.backgroundColor


backgroundOpacity?​

optional backgroundOpacity: number

Defined in: src/core/Scene.ts:74

Background opacity (0 = fully transparent, 1 = fully opaque). Defaults to 1. Not supported when exporting to video or GIF formats.

Inherited from​

SceneOptions.backgroundOpacity


frameHeight?​

optional frameHeight: number

Defined in: src/core/Scene.ts:66

Frame height in world units. Defaults to 8 (Manim standard).

Inherited from​

SceneOptions.frameHeight


frameWidth?​

optional frameWidth: number

Defined in: src/core/Scene.ts:64

Frame width in world units. Defaults to 14 (Manim standard).

Inherited from​

SceneOptions.frameWidth


frustumCulling?​

optional frustumCulling: boolean

Defined in: src/core/Scene.ts:70

Enable frustum culling optimization. Defaults to true.

Inherited from​

SceneOptions.frustumCulling


gridColor?​

optional gridColor: string

Defined in: src/core/LinearTransformationScene.ts:31

Color for background grid lines. Defaults to '#555555'.


headless?​

optional headless: boolean

Defined in: src/core/Scene.ts:76

Enable headless mode (no WebGL renderer). Useful for testing scene logic without a DOM.

Inherited from​

SceneOptions.headless


height?​

optional height: number

Defined in: src/core/Scene.ts:60

Canvas height in pixels. Defaults to container height.

Inherited from​

SceneOptions.height


iColor?​

optional iColor: string

Defined in: src/core/LinearTransformationScene.ts:25

Color for the i basis vector. Defaults to green.


jColor?​

optional jColor: string

Defined in: src/core/LinearTransformationScene.ts:27

Color for the j basis vector. Defaults to red.


pauseRenderingWhenHidden?​

optional pauseRenderingWhenHidden: boolean

Defined in: src/core/Scene.ts:111

Skip drawing animation frames while the canvas is scrolled out of view or its tab is hidden. Animations and updaters keep running, and the current frame is drawn as soon as the canvas is visible again. Explicit renders (render(), seek(), exports) always draw. Defaults to true.

Inherited from​

SceneOptions.pauseRenderingWhenHidden


pixelRatio?​

optional pixelRatio: number

Defined in: src/core/Scene.ts:95

Canvas resolution multiplier. Defaults to window.devicePixelRatio, capped at 2. Pass 1 on high-DPI phones and low-end laptops to draw a quarter of the pixels at 2x DPR.

Inherited from​

SceneOptions.pixelRatio


powerPreference?​

optional powerPreference: "default" | "high-performance" | "low-power"

Defined in: src/core/Scene.ts:97

GPU power hint passed to WebGL. Defaults to 'high-performance'.

Inherited from​

SceneOptions.powerPreference


preserveDrawingBuffer?​

optional preserveDrawingBuffer: boolean

Defined in: src/core/Scene.ts:104

Keep the drawing buffer after compositing. Exporters that read the canvas asynchronously (PNG export via toBlob, for example) need it, so leave it on for scenes you export. For playback-only scenes, turning it off saves a per-frame buffer copy on many GPUs. Defaults to true.

Inherited from​

SceneOptions.preserveDrawingBuffer


showBasisVectors?​

optional showBasisVectors: boolean

Defined in: src/core/LinearTransformationScene.ts:29

Whether to show basis vectors by default. Defaults to true.


targetFps?​

optional targetFps: number

Defined in: src/core/Scene.ts:68

Target frame rate in fps. Defaults to 60.

Inherited from​

SceneOptions.targetFps


width?​

optional width: number

Defined in: src/core/Scene.ts:58

Canvas width in pixels. Defaults to container width.

Inherited from​

SceneOptions.width


xLength?​

optional xLength: number

Defined in: src/core/LinearTransformationScene.ts:21

Visual length of the x-axis. Defaults to 10.


xRange?​

optional xRange: [number, number, number]

Defined in: src/core/LinearTransformationScene.ts:17

X-axis range as [min, max, step]. Defaults to [-5, 5, 1].


yLength?​

optional yLength: number

Defined in: src/core/LinearTransformationScene.ts:23

Visual length of the y-axis. Defaults to 10.


yRange?​

optional yRange: [number, number, number]

Defined in: src/core/LinearTransformationScene.ts:19

Y-axis range as [min, max, step]. Defaults to [-5, 5, 1].