todo items, and adding unlerp() method

This commit is contained in:
benfry
2006-10-10 00:48:09 +00:00
parent accf08d0a2
commit 3e61a250e3
3 changed files with 33 additions and 4 deletions

View File

@@ -2805,8 +2805,12 @@ public class PApplet extends Applet
}
static public final float lerp(float a, float b, float amt) {
return a + (b-a) * amt;
static public final float lerp(float start, float stop, float amt) {
return start + (stop-start) * amt;
}
static public final float unlerp(float start, float stop, float value) {
return (value - start) / (stop - start);
}
static public final float constrain(float amt, float low, float high) {

View File

@@ -2,14 +2,28 @@
X add saveStream() method
X change to handle Java 1.5 f-up where URLs now give FileNotFoundException
X http://dev.processing.org/bugs/show_bug.cgi?id=403
X add unlerp() method
_ loadBytes() and saveStream() functions badly need optimization!
_ don't bother using a buffering stream, just handle internally. gah!
_ make lerpColor honor the current color mode
_ though that's awkward b/c colors always RGB
_ lerpColor(c1, c2, amt, RGB/HSB/???)
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1160096087
_ with default renderer, no default background color set(!)
_ with default renderer, no default background color?
_ optimizations to opengl
_ disabling error reporting (what's taking it so long?)
_ maybe use a hint() to enable it? or a getError() function?
_ make cached display list of filled/non-filled ellipse.. rect.. etc
_ these don't work when the vertex colors change, but..
_ or maybe should be using vertex arrays?
- make a note in the pdf reference that createFont() messed with 1.5
_ figure out what's breaking pdf font stuff, see if it's the 1.5 problem
_ filed as bug #4769141 with apple
_ fonts in java 1.5 have changed again
_ appears that asking for the postscript name no longer works
_ fix "create font" and associated font stuff to straighten it out
@@ -26,7 +40,6 @@ _ may be that cff fonts won't work?
_ or is it only those with ps names?
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1117445969
_ alloc() stuff not fixed because of thread halting
_ problem where alloc happens inside setup(), so, uh..
_ http://dev.processing.org/bugs/show_bug.cgi?id=369

View File

@@ -1,6 +1,18 @@
0119 pde
X .java files weren't working in 116+
X http://dev.processing.org/bugs/show_bug.cgi?id=405
_ need new copy of Capture example that has a new name
_ http://dev.processing.org/bugs/show_bug.cgi?id=408
_ createFont() should always use native fonts
_ need to warn that fonts may not be installed
_ recommend that people include the ttf if that's the thing
_ or rather, that this is only recommended for offline use
_ macosx having trouble finding monaco
_ changing font size,
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1160057791
_ http://dev.processing.org/bugs/show_bug.cgi?id=406
_ need to document changes to int() (no longer accepts boolean)
_ also parseInt and parseFloat, how they can return another number of NaN