MAIDR JavaScript API
    Preparing search index...

    Class SpacedCellsAbstract

    Reads a picture drawn on a display's own pins into braille cells that sit apart on them.

    The picture is drawn as though every pin could be raised, at the display's true resolution and proportions, so a circle stays round and a mark lands where it belongs. The pins between cells cannot be raised, so each is folded into the dot beside it: a column of gap pins into the cell's right-hand dots, a row of gap pins into its bottom dots. A line that falls on a gap is then felt one pin to the side rather than lost, and nothing drawn disappears.

    Index

    Methods

    • Draws lines of cells onto a picture, each dot on the pin it sits on: the way back from fold, for text on a display whose every pin can be raised.

      Parameters

      • raster: DotRaster

        The picture

      • layout: SpacedCellLayout

        How the cells sit on the pins

      • cells: Uint8Array

        The cells, line after line, bit 0 being dot 1

      • firstLine: number

        The line the first cell goes on

      Returns void