Skip to content

1681-engine / pixel / pixelPaint / hline

Function: hline() ​

ts
function hline(
   g, 
   x, 
   y, 
   w, 
   color
): void;

Defined in: src/pixel/pixelPaint.ts:69

A horizontal run of w px from (x, y), one pixel tall; drawn pixel by pixel while a dither fade or outline is on.

Parameters ​

ParameterType
gGraphics
xnumber
ynumber
wnumber
colornumber

Returns ​

void

Released under the MIT License.