usual random updates for people and todos

This commit is contained in:
benfry
2003-01-17 16:19:02 +00:00
parent 41dabb9595
commit bfc4456075
4 changed files with 192 additions and 29 deletions
+150
View File
@@ -1,3 +1,153 @@
4 of the examples stopped compiling (for the same reason) with their port to
version 47/48
the error is:
Cannot find class "color" [JLS 8]
it has something to do with confusion in passing colors into methods and
classes.
the examples affected:
drawing 02
input09
input08
transform05
/ / / / / / / / / / / /
also that pesky pmouseX, pmouseY seems to be behaving oddly again.
it's skipping beats. try this:
void setup() {
size(200, 200);
noBackground();
refresh();
}
void loop() {
stroke(255);
if(mousePressed && pmouseX != 0 && pmouseY != 0) {
line(mouseX, mouseY, pmouseX, pmouseY);
}
}
// the kludge with pmouseX != 0 etc. has to do with their default to 0.
// would it be possible to automatically have P5 set the pmouseX and
// pmouseY to mouseX and mouseY on the first frame?
// comment that line out to see what i'm talking about
....................................................
Gizmo[][] life = new Gizmo[30][30];
void setup()
{
size(300, 300);
background(255, 255, 255);
stroke(0, 0, 0);
for (int a = 0; a < 30; a++)
for (int b = 0; b < 30; b++)
{
life[a][b] = new Gizmo(a, b);
life[a][b].init();
}
}
void loop()
{
if (mouseX >= 0 && mouseX <= 300 && mouseY >= 0 && mouseY <= 300)
{
int ex = (mouseX - (mouseX % 10)) / 10;
int why = (mouseY - (mouseY % 10)) / 10;
}
else
{
ex = 0;
why = 0;
}
if (life[ex][why].alive == false && mousePressed)
life[ex][why].make();
else if (life[ex][why].alive == true && mousePressed)
life[ex][why].kill();
drawbg();
}
void drawbg()
{
for (int why = 0; why < 30; why++)
for (int ex = 0; ex < 30; ex++)
{
if (life[ex][why].alive == true)
{
fill(150, 20, 20);
rect(ex * 10, why * 10, 10, 10);
}
else
{
fill(0, 0, 0);
rect(ex * 10, why * 10, 10, 10);
}
}
class Gizmo
{
int x;
int y;
boolean alive;
Point[] neighbours = new Point[8];
Gizmo (int ex, int why)
{
x = ex;
y = why;
}
void init();
{
for (int i = 0; i < 8; i++)
neighbours[i] = new Point(0,0);
}
void make()
{
alive == true;
}
void kill()
{
alive == false;
}
}
class Point
{
int x;
int y;
Point (int ex, int why)
{
x = ex;
y = why;
}
void set(int ex, int why)
{
x = ex;
y = why;
}
}
................................................................
_ can't used random() inside constructor.. (Glen Murphy)
_ maybe related to problems loading images in constructors
_ check output from file that's created.. seems to fail silently(?)
@@ -95,6 +95,9 @@ editor.program.operator.style=#000000,plain
# how many lines to scroll for each tick on the wheel mouse
#editor.wheelmouse.multiplier=3
# background for full-screen presentation mode
#run.present.bgcolor=#666666
#serial.port = COM1
#serial.rate = 9600
#serial.parity = N
+32
View File
@@ -1,3 +1,35 @@
0048
macosx
X include note in the readme that 1.4 is not supported
X is sketch.properties saving properly under macosx?
X text in editor is anti-aliased, allow to turn off (franklin_mint)
X also make text courier instead of monospaced
public void paint(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
super.paint(g2);
}
pde
X re-enable wheel mouse
X just uses #ifdef for JDK14
o System.getProperty("java.version") -> "1.4.1_01"
windows
X remove built-in jre (!)
X add folder and instructions for serial in expert
X modify run.bat, modify .exe file as well
X add -Xmx128m -Xms128m because people running out of memory (pitaru)
X tried with a 3k x 1k image and things broke
o maybe command line read properties from a file in lib
macos9
X do some font tweaking (monaco 9 or 10 might be good)
0047
X reported by fdb and brendanberg
After creating about 27 sketches, proce55ing (0046 on OS X) no longer would startup, giving me the following error:
+7 -29
View File
@@ -1,33 +1,10 @@
0048
0049
_ disappearing text caret on win2k
_ works in 'insert' mode
_ pmouseX and pmouseX should be colored with mouseX and mouseY
macosx
X include note in the readme that 1.4 is not supported
X is sketch.properties saving properly under macosx?
X text in editor is anti-aliased, allow to turn off (franklin_mint)
X also make text courier instead of monospaced
public void paint(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
super.paint(g2);
}
pde
X re-enable wheel mouse
X just uses #ifdef for JDK14
o System.getProperty("java.version") -> "1.4.1_01"
windows
X remove built-in jre (!)
X add folder and instructions for serial in expert
X modify run.bat, modify .exe file as well
X add -Xmx128m -Xms128m because people running out of memory (pitaru)
X tried with a 3k x 1k image and things broke
o maybe command line read properties from a file in lib
macos9
X do some font tweaking (monaco 9 or 10 might be good)
_ several examples broken (note from creas) in bugs.txt
_ pmouseX problem reported by casey (in bugs.txt)
................................................................
@@ -40,6 +17,7 @@ _ it's sucking cpu and won't open a window until the delay is up
_ is quad strip broken or not behaving as expected? (me)
_ may be correct, it worked for nik
_ font smoothing (unless hint SMOOTH_IMAGES enabled) is broken
_ too many push() will silently stop the applet inside a loop
bagel / features