Skip to content

@mbtech-nl/bitmap / MultiPlaneRenderOptions

Interface: MultiPlaneRenderOptions

Defined in: types.ts:131

Properties

PropertyModifierTypeDescriptionDefined in
colorSpace?public"rgb" | "lab"Distance metric used to classify each source pixel to a palette entry. - 'rgb' (default): Euclidean distance in 0..255 RGB. Fast and predictable. - 'lab': CIELAB ΔE76 with D65 white. Perceptually correct; small per-pixel overhead. Use when palette colours are perceptually close. Default 'rgb'types.ts:142
defaults?publicPlaneRenderOptionsDefaults applied to every plane unless an entry exists in planes.types.ts:145
palettereadonlyreadonly PaletteEntry[]Printer's palette. Length ≥ 1, names unique, name !== 'white'.types.ts:133
planes?publicReadonly<Record<string, PlaneRenderOptions>>Per-plane overrides keyed by palette entry name.types.ts:148
rotate?public0 | 90 | 180 | 270Rotation applied to every plane after threshold/dither, exactly as in renderImage. All planes rotate together — independent rotation makes no physical sense for a multi-colour print. Default 0types.ts:156

Released under the MIT License.