Screen helpers · function

drawPixelText

Lit cells of a string, at a cell size in device pixels.

Explained in Recording and clips.

function drawPixelText(ctx: CanvasRenderingContext2D, text: string, left: number, top: number, cell: number, color: string): void
import { drawPixelText } from '@driftengine/core';

Parameters

ParameterTypeDescription
ctxCanvasRenderingContext2D
textstring
leftnumber
topnumber
cellnumber
colorstring