Skip to content
acsmith edited this page Sep 14, 2010 · 12 revisions

Version 0.3.3 (25 June 2010)

  • napplets can be resized now with the resize(int width, int height) method.
  • Bug: A lot of things seem to not work if the base sketch is using the Java2D renderer (Processing’s default renderer). Until I figure out what’s going on, it’s best to specify the P2D renderer for the base sketch (e.g., size(300, 300, P2D)).

Version 0.3.2 (9 June 2010)

  • Fixed the Animator bug, so everything is peachy right now.

Version 0.3.1 (4 June 2010)

  • Fixed the bug that was making the FireCube napplet non-functional in the sketch gallery example.
  • Switched to the latest version of Andreas Schlegel’s processing library template which is a major upgrade from the version I was using.
  • Narrowed down the cause of the Animator napplet’s non-functionality in the sketch gallery. It has to do with the way the Java2D renderer gets pixel values; not sure how to address that.

Version 0.3.0 (25 May 2010)

  • NApplets have built-in managers: At the moment, all NApplets create their own NAppletManager by default when they’re instantiated, and store it in the nappletManager variable. This may or may not change down the road, depending on performance and other factors. If you declare your own nappletManager variable in your NApplet, that will simply supercede the default one, so (I think) everything will work fine.
  • NApplet nesting: NApplets can now be nested inside each other. (I need to make an example for this, though.)
  • As a result of the above changes, the sketch gallery example no longer functions correctly. At least two of the sketches don’t work right, and the whole thing seems to run slower (at least for me, but then again, my computer is a turtle.) This is presumably due to bugs I haven’t tracked down yet. (UPDATE: This seems to have something to do with HSB vs RGB drawing; still working on it.)
  • Mousewheel support! The method mouseWheelMoved() is called anytime the mousewheel is moved in a NApplet. The variable int mouseWheel holds the current position of the wheel, and int pmouseWheel holds the previous position of the wheel (similar to mouseX, etc.)
  • Translucent NApplets: The alpha value for a NApplet’s PGraphics instance will now be used when it’s pasted into its parent’s display.
  • NApplet tinting: In addition, NApplets now have a variable color nappletTint (or int nappletTint if you’re not using the PDE) that controls how the NApplet is tinted when it’s pasted into it’s parent’s display. This can be used to apply a colored tint or a translucency to the entire NApplet. (By default, this is set to 0xffffffff, i.e., fully opaque, no tint.)
  • Implemented the new Nit interface to allow for a greater variety of objects besides NApplets to be handled by the NAppletManager. (I’d like to use this architecture to implement buttons and other doodads like that, and creating a full-fledged NApplet for each would be massive overkill.) Going forward, NAppletManager will manage any and all objects that implement Nit. The NApplet class implements Nit, so this shouldn’t require any changes to existing code.
  • Moved test classes/applets to subpackage napplet.test.
  • Fixed bug that resulted in NApplets running setup() multiple times.
  • All builds will be targeted to Java 1.4.2 by default from now on, which should eliminate compatibility issues.

Clone this wiki locally