What is the best way to draw/update a custom widget (using its NanoVG context) using a “pixel approach”; in other words I have the pixels in a bidimensional int array (ARGB format) and I would like to transfer it to the widget as fast as possible? Is there an example somewhere?
How many times per second the draw( args ) is called?
maybe the correct name is something like TransparentBuffer? All the VCV controls use it. Also, my “colors” plugin basically blits a random monochrome bitmap onto the screen, so It’s a super easy to understand way to do this:
Yeah, once you discover that the basic things it to put a bitmap in memory and use “fill” to blast part of it onto the screen then the rest can be figured out with tinkering and asking the internet. At least that’s the approach I used