[libgdx] Can you draw a Sprite pixel-by-pixel instead of loading from image?

In libgdx, how I know to do it is I create a Texture by loading an image into the program, and then create a Sprite using that Texture to render it to the screen.

But, is there a way to dynamically create an image inside the program by specifying the RGB values on a pixel-level and then drawing that to the screen?

You can try prepare a 1x1px white texture and or use Pixmap.

Hm, yeah that could work:

use setColor(float r, float g, float b, float a) then fill()?

How would you then piece together the different 1x1 Pixmap to, say for example, a 32x32 Sprite?

Your pixmap should be that size (32). I said 1x1 for manual draw. I fixed my prev post and sorry for confusing.

Ah! Got it, yeah that would work thanks ;D