• Decode a previously encoded timestamp from a canvas

    Parameters

    • context: CanvasRenderingContext2D
    • lineWidth: number

      width of the line in pixels

    • blocksPerRow: number = 32

      number of blocks in the line, 32 by default

    • tolerance: number = 0.2

      percentage of tolerance for the black and white threshold, 0.2 by default

    Returns undefined | Date

    The Date object representing the timestamp or null if the timestamp cannot be decoded

Generated using TypeDoc