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): voidimport { drawPixelText } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | CanvasRenderingContext2D | |
text | string | |
left | number | |
top | number | |
cell | number | |
color | string |