StaticfromCreates a BpxDrawingPattern from a visual representation of 4 columns and 4 rows
(designated by new lines) where # and - stand for a primary and
a secondary color. Whitespaces are ignored.
StaticofCreates a BpxDrawingPattern from a numeric representation of 4 columns and 4 rows.
Recommended way is to defined the pattern as a binary number, with group separator
put between each 4 digits, e.g. 0b0101_1010_0101_1010. The 1 stands for the primary
color and the 0 – for the secondary one.
StaticprimaryThe pattern used by default, which uses the primary color only.
An equivalent of BpxDrawingPattern.of(0b1111_1111_1111_1111).
StaticsecondaryThe pattern which uses the secondary color only.
An equivalent of BpxDrawingPattern.of(0b0000_0000_0000_0000).
The method to check whether a primary or a secondary color should be put at a given (X,Y) when this pattern is applied.
Usually, you wouldn't have to use this method, since it's already used by internals of BeetPx drawing API.
A 4x4 drawing pattern definition of which pixels should be drawn with the
primaryand which with thesecondaryof BpxPatternColors.Example