Constructs a new BitPatternCanvas instance.
The target canvas element.
The binary vector data to visualize.
Optional configuration.
The number of columns in the grid.
The size of each grid cell in pixels.
If greater than 0, applies a bar similarity effect. Useful for illustrating a similarity match score
The color for active (set) bits.
The color for non-matching pixels.
The background color of the canvas.
Computes the canvas height based on the number of bits and columns.
Computes the canvas width based on columns and cell size.
A class for visualizing binary vectors as a bitmap using canvas