Skip to content

textmode.js / conversion / TextmodeConversionStep

Interface: TextmodeConversionStep

One pass in a source-level conversion stack.

Properties

PropertyTypeDescription
brightnessEnd?numberMaximum captured brightness for this pass in byte-space (0-255). Requires brightnessStart.
brightnessStart?numberMinimum captured brightness for this pass in byte-space (0-255). Requires brightnessEnd.
cellColor?TextmodeColorInputFixed cell color for this pass.
cellColorMode?"fixed" | "sampled"Cell color mode for this pass.
characters?stringCharacters used by this pass when the strategy maps through a character palette.
charColor?TextmodeColorInputFixed character color for this pass.
charColorMode?"fixed" | "sampled"Character color mode for this pass.
charRotation?numberCharacter rotation in degrees for this pass.
flipX?number | booleanFlip characters horizontally for this pass.
flipY?number | booleanFlip characters vertically for this pass.
invert?number | booleanInvert character/cell colors for this pass.
modestringConversion mode to run for this pass.
options?TextmodeConversionStepOptionsStrategy-specific options for this pass.