Screen helpers · function
pixelCursor
Explained in Recording and clips.
function pixelCursor(rows: readonly string[], palette: Readonly<Record<string, string>>, options?: PixelCursorOptions): stringimport { pixelCursor } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
rows | readonly string[] | one string per row; each character indexes palette. |
palette | Readonly<Record<string, string>> | character → CSS colour. A character absent from it is
transparent, which is what makes ' ' the natural empty cell. |
options? | PixelCursorOptions |