Context: I'm new to CodeRunner and looking into the possibility of using it in my Computer Graphics unit at MQ. We teach OpenGL programming using the LWJGL library for Java. I'd like to be able to write questions like:
Write a method that outputs a 2D transformation matrix that would transform Image 1 into Image 2.
... where Image 1 and Image 2 are automatically generated by some suitable random test generation. The students code would just need to output a matrix (using the JOML library). For the output, I would like to be able to show the image that results from applying the student's matrix alongside the expected solution. It would also be good run an image diff library to highlight the differences between the two.
I can write the behind-the-scenes Java code to generate the images and do the diff, but I need to make sure CodeRunner can actually display the results. To avoid requiring a server to host the images, I was considering just outputting them as raw base64 encoded data within an HTML <img> tag. So even just the ability to display formatted HTML would probably do the trick.
Is this possible?