• Encode the current timestamp into a line composed of blocks of black and white pixels written on the top of the canvas.

    Parameters

    • context: CanvasRenderingContext2D
    • lineWidth: number

      width of the line in pixels

    • Optional blocksPerRow: number

      number of blocks in the line, 32 by default

    • Optional now: Date

      current date, new Date() by default

    Returns void

Generated using TypeDoc