We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have created code that animates matrices. I would like to create a matrix library (possibly just modify the one already there) that displays an animation of the steps to do a matrix computation. For example, it would show highlighted rows and columns as the answer is computed. I want to not only do the math but insert objects into the code that can trigger the highlighting of the visual, but would like to be able to keep the speed of the original library if the graphics is not to be drawn. In c++ I would just use template objects to compile two different versions of the code, one with, and one without the animation.. I can't think of any way to do this in Processing/Java, but I'm asking in case anyone has a dirty trick that would work. I really don't want to slow down a working library.