fry
Re: Processing 0116
Reply #1 - Sep 29th , 2006, 4:38am
[ major changes to PGraphics and its subclasses ] + The PGraphics classes have all been reworked and renamed. - PGraphics is an abstract class on which additional PGraphics subclasses can be built. It is an abstract class, and therefore cannot be invoked directly. - PGraphics2D (P2D) contains the former contents of PGraphics that are specific to 2D rendering. This will be P2D once it is complete. - PGraphics3D (P3D), formerly PGraphics3, remains mostly unchanged. - PGraphicsJava2D (JAVA2D), formerly PGraphics2, is the renderer used when you call for size(width, height, JAVA2D). It remains the default renderer when none is specified. It is slower but more accurate than the others. + Do not use "new PGraphics" to create PGraphics objects. Instead, use createGraphics(), which will properly handle connecting the new graphics object to its parent sketch, and will enable save() to work properly. See the reference for createGraphics: http://processing.org/reference/createGraphics_.html + For the same reasons as above, createImage(width, height, format) should be used instead of "new PImage" when creating images: http://processing.org/reference/createImage_.html + PImage objects default to ARGB instead of RGB format. This is helpful for using createImage() or createGraphics() to generate a transparent surface. Be sure to use PNG or another format that supports alpha. + beginFrame() and endFrame() are now beginDraw() and endDraw(). Use these around drawing commands to a PGraphics created by createGraphics(). The defaults() method should not/need not be called, just beginDraw() and endDraw(). [ other additions and enhancements ] + Added an option to Preferences that sets the available memory http://dev.processing.org/bugs/show_bug.cgi?id=233 + Added a menu option to switch between tabs http://dev.processing.org/bugs/show_bug.cgi?id=55 however, there's a problem where it sometimes stops working: http://dev.processing.org/bugs/show_bug.cgi?id=402 + The OpenGL library has been updated to use the "final" release of JOGL 1.0, released September 2006, rather than beta 4, found in release 0115. + The flag in PApplet.main() formerly called --present-stop-color is now simply --stop-color. A flag named --hide-stop has also been added, to prevent users from quitting out of a present mode application. see the faq on details for capturing ESC as well. + Altered mouse behavior so that mouse positions update only on mouseMoved and mouseDragged. this also fixes a macosx bug that caused mouseX/Y values to be bizarre because mouseExited() gave weird positions (workaround for apple bug). + The "Export Folder" Tool has been removed, if temporarily. + "Archive Sketch" now prompts for a sketch name, it was awkward trying to dig the sketches out of the sketchbook folder. + added constant for DXF so recordRaw(DXF, "blah.dxf") can be used instead of recordRaw("processing.dxf.RawDXF", "blah.dxf") + Make all array functions work on arrays of all types: expand, append, contract, subset, splice, concat, reverse http://dev.processing.org/bugs/show_bug.cgi?id=115 + Added alpha parameter to color/stroke/tint/fill for use with web colors. i.e. fill(#FF8800, 30) is now valid. + Removed image(filename) and textFont(filename) et al. These made a brief appearance for the last release, but were not a good idea. + URLs with ampersands now supported on Windows, thanks to toxi. http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1149974261 + Only update mouseX and mouseY when mouse is moved and dragged. Fixes certain kinds of sketches, and also avoids a Mac OS X bug that causes sketches to jump as you move the mouse to the edge of the window. http://dev.processing.org/bugs/show_bug.cgi?id=170