1681-engine / pixel / pixelPaint / stroke
Function: stroke() ​
ts
function stroke(
g,
a,
b,
color,
width?
): void;Defined in: src/pixel/pixelPaint.ts:99
A line width px thick built from 1px rows: the row on one side is lit, the far row deep, and a long stroke tapers to the deep tone at both ends and catches a glint a third of the way along.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
g | Graphics | undefined |
a | Point | undefined |
b | Point | undefined |
color | number | undefined |
width | number | 2 |
Returns ​
void