Skip to content

Documentation / @ripl/terminal / TerminalCommandHandler

Interface: TerminalCommandHandler ​

Defined in: terminal/src/commands.ts:57

A path command's two rendering passes: contour flattening (for fills) and outline rasterization.

Methods ​

rasterize() ​

rasterize(context, args): void

Defined in: terminal/src/commands.ts:61

Draws the command's outline for the stroke pass.

Parameters ​

ParameterType
contextRasterContext
argsnumber[]

Returns ​

void


toContour() ​

toContour(context, args): void

Defined in: terminal/src/commands.ts:59

Flattens the command into raster-space contour points for the fill pass.

Parameters ​

ParameterType
contextContourContext
argsnumber[]

Returns ​

void