• Hi! I'm not sure I really understand the question?

    You can just use Graphics normally or pass the variable g in if you want to be able to draw to Graphics?

    Q: Lookup tables for char to barcode fillRect are very large, what is memory wise the best way to store them.

    Like in the code you posted? Uint8Array or String is best. Doing new Uint8Array([13, 39,....]) will use a bunch of memory as it still has to create a non-flat array, so you can always create it 'offline' and then use btoa to create a base64 encoded string and use that in your code (a bit like is done with images)

About

Avatar for Gordon @Gordon started