fry
Processing 0125
Jul 15th , 2007, 8:10pm
ABOUT REV 0125 - 15 July 2007 Enormous number of bug fixes and additions. Many thanks to ewjordan and fjen, who also contributed fixes for this release. [ api changes ] + Changed the constructors for the Capture class to be more consistent with the rest of the video library. The following constructors: Capture(PApplet parent, int width, int height) Capture(PApplet parent, int width, int height, int rate) Capture(PApplet parent, String name, int width, int height) Capture(PApplet parent, String name, int width, int height, int rate) have been changed to: Capture(PApplet parent, int width, int height) Capture(PApplet parent, int width, int height, int rate) Capture(PApplet parent, int width, int height, String name) Capture(PApplet parent, int width, int height, String name, int rate) This version is not particularly consistent: Capture(PApplet parent, int width, int height, int rate) though we'll be leaving it in because it was used so heavily. + The split() method has been altered to avoid inconsistency. In fact, it has split itself into two methods. Har har har. split(String s), has been removed, use splitTokens(String s) instead. split(String s, char c) remains unchanged. split(String s, String delim) is now splitTokens(String s, String delim) The new model is that split() breaks a String into pieces given a single delmiter, which can be a single character or many characters. For instance, split("Something<BR>in<BR><BR>HTML.", "<BR>") now produces the array "Something", "in", "", "HTML". The split() method breaks the String whenever it sees the delimiter, so a <BR> next to another <BR> produces an empty String. On the other hand, splitTokens() takes a list of possible delimiters, and will consume one or more of any of them. For instance: splitTokens("really, messed ,up with ,,, commas,", ", "); will produce the array "really", "messed", "up", "with", "commas". Because any group of comma or space characters (and in any order) will simply be consumed as a single break. + The casting functions, e.g. int(), float() boolean(), and friends have now been streamlined a bit to only cover casts that actually make sense. + Blending modes have been finalized for 1.0, thanks to the help of Dave Bollinger, who contributed code to complete the set: http://dev.processing.org/bugs/show_bug.cgi?id=132 See the reference for blend() for more details. Thanks Dave! + The constant CENTER_RADIUS is now simply RADIUS. Both still work, but CENTER_RADIUS should be avoided. + The constants for ENTER, TAB, et al. are now char values, rather than ints. + The framerate() method in the movie library has been renamed to frameRate(). + Addition from Tom Hulbert to add setDTR() to the Serial library. + Where possible, more methods inside PApplet have been made static. This may break some library code (the OCD library is one example) until it's updated for 0125. We'll try to add a more informative error message about this in 0126. [ additions, improvements ] + Significant improvement to text and images in OpenGL mode. Now using mipmaps to interpolate large and small images. + The println() method with arrays now prints the array indices next to each element, making it a bit more useful. The print() method no longer supports arrays, since that was a bit silly. + Major rework of the open() command. This function behaves differently on each platform. On Windows, the parameters are sent to the Windows shell via "cmd /c". On Mac OS X, the "open" command is used (type "man open" in Terminal.app for documentation). On Linux, it first tries gnome-open, then kde-open, but if neither are available, it sends the command to the shell without any alterations. For Java users, this is not quite the same as Runtime.exec(), because the shell command is prepended. The method exec(String[]) is a shortcut for Runtime.getRuntime.exec(String[]). This function was also modified for Mac OS X and Linux support, and to better handle spaces in command names. + textAlign() now supports a second parameter that handles vertical alignment of text. The second parameter can be TOP, CENTER, and BOTTOM. + Added min() and max() for float and int arrays. + At Casey's urging, the "Color Picker" is now called the "Color Selector". + Fix up MovieMaker from Dan Shiffman, also add the library to the reference pages. + Re-architect SVG to properly inherit fill/stroke/etc from parents <g> object can specify fill/stroke for everyone below need to discern between having a fill specified and one not being present + Fix Find/Replace button placement, also add Replace & Find Next option http://dev.processing.org/bugs/show_bug.cgi?id=68 + Make "Find In Reference" and "Show Sketch Folder" work with Linux