Geometry · function

countCells

How many lit cells a string needs, which is how many boxes it costs.

Explained in Hello world, Meshes and geometry.

function countCells(text: string): number
import { countCells } from '@driftengine/core';

Parameters

ParameterTypeDescription
textstring