@ceeblue/web-utils
    Preparing search index...

    Function encodeTimestamp

    • Encode the given date (excluding year and month) 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

      • blocksPerRow: number = 32

        number of blocks in the line, 32 by default

      • now: Date = ...

        current date, new Date() by default

      Returns void