Skip to content

Documentation / @ripl/terminal / createTerminalTransform

Function: createTerminalTransform() ​

createTerminalTransform(letterbox, transform?): TerminalTransform

Defined in: terminal/src/transform.ts:67

Composes a letterbox with a transform and wraps the result as a TerminalTransform.

Parameters ​

ParameterTypeDescription
letterboxMatrixThe context's logical-to-raster letterbox.
transformMatrixThe current transform, in logical space. Defaults to the identity.

Returns ​

TerminalTransform

The composite mapping used by every drawing path.