Looking for a library that will let me simply display an array of pixels, and get keypresses(not a strict requirement). Python with Pygame would allow me to do this with
pygame.surfarray.blit_array(pgscreen, pixelarray)
where pixelarray is a multidimensional NumPy array. Is there a Nim library that allows something similar to this?
You can also look at boxy: https://github.com/treeform/boxy
Here is also a youtube vide about what makes boxy great: https://www.youtube.com/watch?v=UFbffBIzEDc
A ton of examples on how to use it here: https://github.com/treeform/boxy/tree/master/examples
To get a simple pixel array going just create an image:
var screen = newImage(320, 200)
And updated it every frame:
screen[10, 10] = rgbx(255, 255, 255, 255) # set 10, 10 to white
bxy.addImage("screen", screen)
bxy.drawImage("screen")