0040 X fix problem with pde.properties 0039 X left PdeBase out of the run.bat in windows.. piss me. X need comprehensive set of tests for 'f' substitution scenarios X here is the test code to see if it's fixed X much reworking for run/present modes X run/present modes are getting confused X [esc] to exit presentation mode X remove 'edit' menu because it's worthless X build 'release' version of app that doesn't need MFC42D.DLL X check on linefeeds and other errors with bbs on web site X serial X some method for getting list of serial ports X pde menu item for listing serial ports available o could just println them to the console X import javax.comm stuff as standard in kjc (but not export) X can't get fonts to load - tested working ok X bagel complaint: could not load font Univerx76.vlw.gz X why the x? what's going on? X try using serial on macosx X works, but about as well as the windows version used to X try using serial on macos9.. X works well! shockingly well X os9: apple control keys register as edit events in buffer X use Toolkit.getShortcutKeymask() to figure out what's up X -> seems to have fixed itself (?) X test presentation mode for window sizing status on macos X serial port code needs to be implemented X something that docks better to java serial api X implement menuitem to load ref and to launch p5.net X MRJFileUtils.openURL(String url) throws IOException X also, ref should go to index page, not environment X check to see if lines for error messages are off in macos 0039 BUGS WITH CODE // font problems BFont font; font = loadFont("Univers76.vlw.gz"); //font = loadFont("Bodoni.vlw.gz"); //BFont font = loadFont("Univerx76.vlw.gz"); setFont(font); String happy = "FontTest"; //float happyWidth = font.stringWidth(happy); //text(happy, (width - happyWidth)/2, 10); text(happy, 20, 50); // float issues //BFont font1; //BFont font2; //font1 = loadFont("Univers76.vlw.gz"); //font2 = loadFont("Bodoni.vlw.gz"); println("Univers76.vlw.gz"); float a = 80.4; float b = .7; float c = (b * 20.3); float d = 10; fill(a, b, c); rect(a, b, c, c); 0038 X set bg color on macos9 buttons as well X get icon in macos9/macosx/windows formats X wahoo! figure out how to do do simple .exe with icons o use launcher code from sun jre o needs to be built from command line X keyPressed() and others weren't being called X serial work under windows X make bapplet a serialporteventlistener X remove 'public' from beginner listener event handlers X trying to make eventlistener work X comm.jar has to be in classpath for kjc (interesting) X fixed launcher.exe because of problems in classpath X how to make double-clickable version for osx X might be as simple as combined jar with manifest and symlink X jar doesn't like opening pde.properties b/c getClass fails X app title comes up as PdeBase X -Xdock:name property or X com.apple.mrj.application.apple.menu.about.name (gulp) X -XDock:icon (lowercase dock?) to set icon, or X .icns file in the Contents/Resources of the bundle X check tn on java runtime properties for macosx X need fxns to test platform and java version X serial works poorly for starting/stopping applets X appears to be fixed through use of static object in bagel X breaks on every 2nd run when using serial apps (or others?) X try calling gc on stop as well X make it simpler to build the code.. X buzz.pl actually no longer needed (no ifdefs) o use a regular makefile for everything X getResource stuff breaks, sketch.properties can't save X FileNotFoundException: /FILE9/+/sketch.properties X doc: requires java 1.3.1 update 1 X button backgrounds are weird since not square X (seen when asking to save a file etc) X see if possible to set background of button object X or maybe just background of the awt object it sits on X get casey's examples into the sketchbook X these should become the standard test cases for everything o crashes when people click on help in top bar (same in DBN) [macos9] X not reproduced.. mrjappbuilder seems stabler? X use osx utilities to setfileinfo for .jar files etc o try to build macutils under osx X bug where pde.properties was being replaced for sketch.properties X changed pde.properties_PLATFORM -> pde_PLATFORM.properties X f subst problems: include , and ; as allowable X float f = 0.3; and fill(0.3, 0.2, 0.1); X windows needs to work from the .exe X also included run.bat just in case X test the gcc executable, and tweak dist script accordingly X add 'readme.txt' to dist.sh.. change notes to revisions X add examples to dist.sh scripts X separate shared script to cleanup? X or small script to remove CVS directories from a tree X check osname under win98 and linux X information on how to submit bugs to p5-bugs@proce55ing.net X include release number, platform, and a copy of the code X proce55ing thinks the following numbers are a double: X float a = .5; float b = 0.5; 0037 X copying files from 'data' dir is not recursive.. fixed X move structure of app/application dirs around a bit X make a new 'dist' function for building X save window position (only during session) of sketch run window X shouldn't substitute f's for: "Univers76.vlw.gz"; X need lots of testing--this changes lots of things X fixed commentsCodec which was mangling things o present mode doesn't work for draw() X tested, seems to be fine? X console - convert tabs to spaces o line wrapping (but save info for resize? noo..) X fix to line numbers being off for KjcEngine exception highlights X changed error color slightly for console to fit status error X size() not being called in setup is gonna cause lots of headaches X hack: put exception handler around setup and re-call if necessary X linefeeds were wrong in BApplet X for people visiting site, what os are they using? X saving to gzipped 'versions' file X autosave every few minutes, also on each compile, also on save X mark each as 'save', 'autosave', 'failed' or 'successful' compile X also include a timestamp X if a selection is made from the menu: X autosave, replace text, mark as edited X if there have been no edits, and last thing was hist change, X should *not* do another autosave X ensure this by historyLast being set on change.. heh. nice. X write message to people who signed up for p5 alpha 0036 X editor.buttons.bgcolor default value was wrong X sketch.properties exception when closing on linux and mac X urlstr was garbage because of windows-specific code X test build macos9 version with JDK13 flag turned off X make buttons taller by 4 pixels (looking bad on macos9/macosx) X change to uppercase (looks dumb on mac, and casey doesn't like) X set background color of buttons in EditorStatus X modify to only change it under aqua.. does screwy things for windows X check splash screen and icons into cvs X macosx.. editor.status.font needs to be size 12 X same under windows, just wasn't being set properly before X header font needed to be set each time as well X introduce pde.properties_OSNAME X tested to make sure it joins with the other pde.properties ok X setPixel(i, j, #99CC00); X not working anymore Syntax error: unexpected token: CC00 X problem was substitute only worked along with = X perl should be ok to be cygwin perl.. try deinstalling activestate o should fix paren balancing bug.. X just disable by default for alpha o background() not working X checked but couldn't duplicate X change editorlistener properties to use underscores X imageMode() was gone.. now replaced X collapse pdeengine/pderunner/kjcengine X remove 'extends' from kjcengine, make an instance of Main X may need to subclass at.dms.kjc.Main to override the exit() X make pdeengine a class X remove pderunner, collapse into pdeengine X checked line z problem bug.. it's b/c single pixel lines have no z X fold simpleserial into BApplet X set serial properties inside bagel in kjcengine o sprint an sprintln functions X nixed because they're too weird, don't make sense w/ actual use X serial.messageReceived extra long crap in demo.pde (clean up?) X improve simpleserial and clean up a bit X need to have function to enable it in setup X make i/o work just like mouse (event driven, with dflt behavior) X present mode should hide editor frame X mouse coords coming from window when outside applet.. bad! X just removed the listeners on the window.. don't seem to be needed 0035 X fixed a NullPointerException on startup X when sketch.properties didn't exist, shouldn't print error X fix status standard message color text color X mousePressed() not working, also mouseReleased X also has to be public void mousePressed() for kjc X background(), fill(), stroke() using color datatype X check 0xff high bits to see if it's an int gray value or a color X fix curve()/bezier() X make curve() work as 6 point with doubled endpoints X translate is disabling color X (probably because of lighting) X save as instead of rename/duplicate X this makes more sense, hopefully it won't break everything X put newline after imports header in exported .java files 0034 X make all windows 120x120? X default program should be large, 300x200 or so X what if it's smaller? boundary of color 51, 51, 51 around it X implement presentation mode X editor frame doesn't have to be in front X include button in present mode to bring editor back up X add frame to launched window X add maximize event catcher to make fullscreen o doesn't work, because of screen sizing stupidity X shift-click on play to go directly into this 'presentation mode' 0033 X implement 'duplicate' X implement renaming of projects X renaming projects X make sure people don't use - or other illegal chars X on export or naming sketches--no spaces(!) o changed by clicking on the name and typing X new/duplicate/rename should rebuild skopen menu X item to launch proce55ing.net X item to launch reference in browser X check all menus to make sure they all work/make sense X disable the ones that aren't implemented X in progress working on presentation mode 0032 already finished X need to update PdeKeyListener for new ui.. X remove open, add d for duplicate, r for rename, others ? X 'open' button is a switch-to button X pops up list of everything in the sketchbook o first item is 'new sketch', followed by delimeter X next is list of subdirs other than current user, then delim X the rest are the items in the current user's folder X need 'new' button on the toolbar (or first sketch menuitem?) o the zero looking one might be good (instead of export) o export could be three circles in a row, overlapping X everything is a project.. what about short snippets of code? X this version won't be able to access everything from scrapbook X (that requires a more robust class loader) X sketch.properties contains the last program run X also the window positions, etc X saves screen size, so if screen size changed, window pos reset X if it doesn't exist, starts with a new project X for a new project, name it untitled-0001 or as appropriate X so that previous projects aren't written over X verify save when X closing p5 window X moving to other sketch X NullPointerException on startup in pde editor buttons X shows up on slower machines, probably images not loaded yet X use a vm that won't destroy the screen like sun/ibm does X this means msft or newer version of jdk X if default user, don't show the 'user' string in pde window X item in pde.properties to set the name of the current user X exporting X exporting applets that have custom name problems: X if extends processingapplet, the name user types must be same X gets confused about paths and puts boogers in weird places X doesn't compile correctly (must first compile with play) X doesn't include additional (private) classes X when exporting 'name of folder for export...' X default name should be from public class X because otherwise errors are happening X or name from user only determines folder name X if extends ProcessingApplet [more compatible] X make sure export is compiling first X right now have to hit play and then hit export (?) X file structure for export X need to set project name for files X include other .class files built besides the main one X compile into 'classes' folder X include referenced image and font files (can't do if numbered) X make close() work to kill applet in kjc X save window x, y, width, height to pde.properties on exit X stderr in red color X 'data' directory for all media X make included media part of the .jar file X it's really a pain to use external files in processing X getStream sucks (zach rewrote) X should be able to work for application or applets X may want to use getResource() (to get things from .jar files) X remove .java and .class files for compiled classes X (just clean up the boogers afterwards) X compiling .java files leaves the .class files next to the .java X make sure all the dirs in sketchbook added to classpath on startup o if new dir added, must restart processing (this is acceptable) X importing images doesn't work (?) 0032a X put 'modified' indicator in the darker color X fix bug with opening sketches from the menu (grr) X need to check if file.exists() when opening X otherwise the exception doesn't get caught and app hangs X switch to using a 'build' directory in lib for everything X lib\build can be added to the classpath at startup X cleanout build directory on each run (delete .class/.java) X temporary until classloader issues worked out X implement popup menu 0032b X add 'new' button (and complete ui) X make toolbars work with sk X make 'data' dir work with build X empty contents and change bagel to use getResource X also use getResource("data" + ) X make export work again 0032c X getData -> gets contents of stream, puts into byte array X remove everything from build when starting a new build X (don't do this until it's clear that it's working well!) 0031 X lib/pde.properties should be read using getResource X otherwise path issues cause trouble (likely under win98) X take state information out of Header X cleanup lastFile/lastDirectory X save (just) last program run in sketch.properties X coloring of error, message, etc changed in pde.properties X finish save changes stuff X editorlistener shouldn't track menu commands as changes to file X ctrl keys bksp/del/enter/return/tab then space on up X indicator for changes? X need to implement code for whether changes have been made X check for key events in textarea or something X if key events, compare contents against the existing file X userName not getting set before sketchbook menu is built X add 'refresh list' item to the sketchbook menu X ability to set directory for compiling in kjcengine X make sure compiling into build directory X and once compiled there, read all classes for export X write class loader or figure out how to change classpath X might be able to load classes using forInstance on each file X using byte array version of constructor X you should be able to create methods in drawing mode X this shouldn't work, make void draw() {} to allow 0030 X attempt to fold serial into bapplet, but mostly fail X convert color -> int X also include #ff00cc -> proper conversion X comments are removed from exported files 0029 X triangle() 6 parameters X quad() 8 parameters X rect/rectMode again X remove addMouse/addKeyboard/addTime X keyDown(), mouseDown(), lastMouseX, lastMouseY X degrees(), radians() X new color solution X make sure fxns come through (if static/final?) X color() -> uses colorMode X red/green/blue() hue/saturation/value() functions X getPixel/setPixel X proposed color solution (canned) o color -> since color 'mode', responds to colorMode o getPixel/setPixel -> get/set int for purpose of moving pixels o get/set Red/Green/Blue/Hue/Saturation/Brightness -> uses colorMode o setColor(x, y, z) -> hsb or rgb via colorMode X get casey setup with full cvs so that he can build w/ changes X make sure lib/export is updated properly this time 0028 X modified pde.properties slightly for console and header X need stdout in p5 window b/c mac has no stdout X remove class 'PdeEditorOutput' and 'PdeEditorLabel'(?) X added editor.console.lines to pde.properties X int() and float() now work for casting X draw mode needs to be better for workshops X make size() work for draw() mode X inside Engine, reach in and grab calls to 'size' X if call is not using a constant number, then punt X when exporting, needs to grab this size parameter as well o related classes X resolved, just use inner classes for everything o better way to do parent and g.rect stuff in related classes o implement g. passed into any function called draw() o also important for things like cos, sin, max etc o but maybe once you're doing more advanced code, that stuff's ok o or using inner classes is better b/c class stuff works o related classes also need to implement pConstants X fixed annoying findSelection bug spew on startup X (fixed) 0.4f no longer allowed in the code X size() code no longer checks for resize() and other similar things X add char(), byte() to int/float stuff X put jre into 'java' folder, include win32comm X finish tweaks to folder layout in distribution ('java' subdir) X move p5 stuff out of lib so that dir can be moved more easily X maybe put bin/lib inside 'jre' folder and keep lib for p5 X for people that want the space, they could remove 'jre' X will make much simpler to update X serial is probably broken in newer versions b/c of 1.3 X fixed, only win32comm was missing from dll dir 0027 X change editor.button_bgcolor -> editor.buttons.bgcolor X if no 0 before decimal place in a number it breaks X change plane to quad X get new casey colors and buttons 0025 X change 'rect' to 'plane' (point/line/plane) X also rectMode to planeMode X change QUADS to PLANES, QUAD_STRIP to PLANE_STRIP X delay wasn't working for casey X works fine on pc.. maybe a mac problem X turned out to be a misunderstanding for loop() X curve and bezier behave differently for indexing points X change bezier to act the same (each addl point) X allow ui to be colored/skinned so creas can tweak X make macintosh release X font file names are getting mangled on mac (too long) X new set of fonts, make sure the names are ok 0024 X bug fixes (lighting was broken) 0023 X not released, tweaks and bug fixes in paris hotel 0022 X not released, just working on tweaks and bug fixes 0021 X cosmetic ui update so that it's not so dbn-like X should this instead be simple colors update (no placement) X move everything to new bagel api names X having to put 'f' after everything is a mess X included oro matcher, no need to use anymore :) 0020 o fix bugs from the 'bugs' file o then remove the file from cvs o if fill(), need to draw several non-stroked planes o if stroke(), then draw single lines for each edge o do not duplicate edges for lines o also problem filling on beginShape() triangle stuff X z coordinates are backwards from gl (at least from mazo) X looked into it, this doesn't appear to be the case.. X how did this happen? what's the appropriate way to fix? X in gl, positive z goes into the screen X may be able to do a scale(0, 0, -1) that doesn't affect dims X then when dims set to 3, will fix the z coords X this will also affect zbuffer ordering X if BagelImage doesn't load, then image() calls arrayindexoutofbounds X better solution for this (error while opening image) X get rid of 'kill' button X int version of min and abs X introduce pImage, pFont, pGraphics, pConstants (pSound) 0019 questions answered.. X is day, month, year overkill inside processingapplet? X decided no X loadImage or getImage? X loadImage sounds better to ben and casey X circle/square functions X doesn't seem necessary X main problem is that with ellipse, points aren't inside shape X should the default be 100x100 X yes, casey won X default background color: 204 X casey prevails again X maybe stop/kill button should only be a stop btn - yes X what to call 'pouch' directory? -- data X function name to toggle drawing from center: ellipseMode(), rectMode() X PImage, PFont or how to name? X pImage, pFont, pGraphics, pSound X bezierVertex/catmullRomVertex poorly named (based on algo used) X instead curveVertex/fitCurveVertex/etc. X use curveVertex and bezierVertex bagel miscellaneous X change lightsOn/lightsOff to lights() and noLights() X beginShape() defaults to POLYGON X introduce constants for other poly modes X add ellipseMode(), rectMode() X CENTER_RADIUS, CENTER_DIAMETER, CORNER, TWO_CORNERS X bezier and catmullrom aren't setting ndim to at least two X ?? not sure why they would X translate(x, y) doesn't seem to affect a rect() X flat_rect was being used where ndim was 2, not 0 X curveVertex and bezierVertex instead of catmull/bezier crap X single color function X need to clamp colors (nothing > 255 or < 0) X (garbage created when color values out of range) X do by simplifying stroke/fill/background inside bagel X these should be done w/ a switch (STROKE, FILL, BK, OTHER) X needs to be done inside cpp version too.. minimize amt of code X rewrite fill/stroke/etc to use same code X doesn't need to be super fast, so the extra assigns no big deal X move MemoryImageSource out of bagel and into ProcessingApplet X need to run bagel to just render to a large internal buffer X this fits better with the c++ model of things X make default size be 100x100 X make default background color 204 X lightsOff() seems dumb with noStroke and noFill X lights() and noLights() 0018 X fix fonts.. try megan's color selector applet 0017 improve exporting and lines X g.applet = this at beginning of program X finish setFont with a font size X add 'hint' function for scaling line thickness X add hint for super smooth images X add preferredsize to processingapplet X bug in Bagel.loadImage that made images not work in applets X catch exception inside polygon scanner (slower?) X millis returns 0 (though getMillis() is fine) X explicity refresh screen on macosx at end of loop: X java.awt.Toolkit.getDefaultToolkit().sync(); 0016 X disable play.external by default 0015 X flickery jumpy thing with canvas.. sun jvm bug X switched to ibm java vm 0014 X fix z coordinate, ndims not being set to 3 X put bezierCurve and catmullRomCurve back in X examples - setting background using a full screen image X uses System.arraycopy for speed X update to newer version of kjc (1.5B) X move website to cvs X make fake cvs user that creas and i can share passwd of X unwarped_image() is broken (making things slow for jseo) X then fix in c++ version X special case lines of thickness 1 X doing way too much work to draw thin lines X using full 3D polygon fella for semi-obviously 1 pixel lines X may have fixed OutOfMemoryError problems X run.bat had included -ms256m -mx256m 0013 X ellipse draws in the opposite direction of the origin X actually fix the bug with extends X wasn't included in previous release X option to set full screen background color X uses fullscreen.bgcolor in lib/pde.properties X remove 'colorScale' from the default program in pde X fix color cube applet X make it run in current version of processing X fix background from showing up black X screenGrab() code (single frame to tif) X externally loaded files are off by 1 line for errors 0012 X 'extends' replacement is mangling things.. fix it 0011 X image(img, x, y) was broken for unwarped mode, disabled it 0010 X add java.* to top of processingapplet default base class used by kjc X KjcProcessingApplet is dumb, kjc should make subst itself o give warning when compiling w/o kjcprocessingapplet X random bug with an extra line being added in beginner mode X (threw off error markings) X z=0 shit, 2D stuff needs to draw over z=0 plane X new objects draw behind old objects with noBackground() X fix crappy way of determining if inside a class--ignores comments X hope this fis works.. not tested much X make acu fonts work again X write code to use simple bitmap fonts X add a file with bugs for testing X kjc not smart enough to just compile things that are in classpath X redo random functions in processing applet X strangeness with stroke when a rect goes off outside the window X rect now uses x, y, width, height instead of x1, y1, x2, y2 X circle has been replaced with ellipse (uses xywh) X box takes diameter, or width, height, depth [NOT IN CPP] X sphere is the same as box [NOT IN CPP] X got rid of colorscale and using colormode for all instead X make changes in documentation X 'ellipse' instead of 'oval'? X make note in documentation X catmullrom is broken X write documentation for new curve functions o make note in docs about removal of LINE from LINES X setting origins X should shapes draw from center or from upper left? X should ovals use radius or diameter? X should shapes use x1, y1 - x2, y2 or x, y, w, h? X nice to have a random number generator between -1..1 X as well as an integer random; instead of just 0..1 X show creas how to get access to cvs X documentation says 'mouseDown' even though it's 'mousePressed' X font support X use gzip to compress bitmaps (made 115k vlw font -> 16k) X loadImage/loadFont or getImage/getFont? X text(char c), text(string s) X current acu fonts are broken X image support X image() and 2D/2D affine versions of it X no stroke should show up on image() X fill being set on image() produces weird results X has to be set, but doesn't actually affect color X min() seems funny/unavailable X worked fine for me 0009 X bagel fixes X beginShape(POINTS) is not working, no marks are appearing X this was a pain in the ass to fix X beginShape(LINE_LOOP) is not looping around X stroked POLYGON should emulate a LINE_LOOP X fill white, stroke black, background white default in bagel X remove duplicates: LINE/LINES etc X 'draw mode' applet support X 'advanced' applet support X write documentation about having to use 'extends KjcProcessingApplet' X add a note about editor.expandTabs,balanceParens,tabSize,autoIndent X also add note about paren balancing doing strange things X leave the others turned on, but parens off by default X enable/disable full screen leaves windows in back X (may just require two toFront() calls) X whenever background is frontmost, have it call tofront on editor 0008 X ctrl-s does 'save', button on toolbar does 'save as' X fixed auto-indent bug for editor X SimpleSerialDemo.pde had a bug (was old version) X re-enabled key commands for editor (tab expansion, auto-indent) 0007 X serial bugs X ability to control sleep time from simple X message[] not buffer[] X synchronize X signed byte crap is confusing, make into chars X bk(n), fill(n), stroke(n) should be consistent with tuples X make notes in serial docs X processing app needs to start first X currently a bug requiring stop the close before starting 0006 X get serial i/o code working in processing X how to kill serial when applet stopped X finalizer prolly not getting called 0005 X running out of memory, presumably b/c applets not being cleared X happens inside init() of applet (at new Bagel()) X figure out why threads aren't actually dying X disassociate processing applet with a window on stop? X possible to maintain bagel, but kill applet? X or copy bagel's image, and kill that too? 0004 X put debugging stuff back into Kjc (i disabled some stuff) 0001 X convert documentation to html o setup imrf linux machine? DISCARD o get proce55ing.net, make that the target launch site o write a dbn compatability mode (forever() instead of loop() ?)