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 ​
| Parameter | Type |
|---|---|
context | RasterContext |
args | number[] |
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 ​
| Parameter | Type |
|---|---|
context | ContourContext |
args | number[] |
Returns ​
void