Skip to content

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 ​

ParameterTypeDefault value
gGraphicsundefined
aPointundefined
bPointundefined
colornumberundefined
widthnumber2

Returns ​

void

Released under the MIT License.