waytale - v0.5.1
    Preparing search index...

    Function generateBytesPattern

    • Use raw bytes data to deterministicaly generate a pattern as SVG image.

      The pattern will be composed of rotated rectangles of different sizes and colors. The number of rectangles depends on the length of the input data. The algorithm will try to distribute rectangles somewhat equally across the full image.

      Parameters

      • bytes: any

        data to be visualised

      • Optionalwidth: any

        width attribute of SVG element

      • Optionalheight: any

        height attribute of SVG element

      Returns string

      • SVG image