I'm looking for a way to monitor the java bytecodes and/or machine instructions as they run in the JVM, kind of like a realtime javap. This could obviously slow things down significantly, but I'm interested to know if any tools are out there for this kind of monitoring.
I am working with multiple variables that each need to be colour coded. The number of variables dynamically changes from around 5 to 50. I am using HSB colour mode.
Does anyone know of an algorithm that will automatically choose x number of HSB colours that are as perceptually diverse as possible?
This works great except that i have many different classes that need to draw to either window depending on the context. A class may have a draw function that looks like this:
void draw() { polygon p; for (int i = 0; i < _polygons.size(); i++) { p = (polygon) _polygons.get(i); p.draw(); } fill(0); stroke(0); ellipse(0.5*width, 0.06*height, (0.04*2)*width, (0.04*2)*height); }
As you can see, the draw method for this class calls the draw method for another class (polygon) as well as drawing some things of its own.
What is the best way to configure this draw method and that of polygon so that I can pass them an argument that tells them which PApplet to draw to (s or the default)?
The code below does not produce color properly in the pdf file, even though everything looks fine in the Processing window. Other examples I have tried that do not use beginRecord() and endRecord() work fine. Any ideas why?