 |
Author |
Topic: 0053 output (Read 250 times) |
|
Glen Murphy

|
0053 output
« on: Apr 11th, 2003, 3:55am » |
|
When I run the following code and press a key, the text output area at the bottom of the P5 window fills up with text like 'increment() 2.12 2.56 delta, frac = 9.765255, 0.125' etc Code: BFont f; String txt = ""; void setup() { size(500, 400); background(256,256,256); fill(0,0,0); hint(SMOOTH_IMAGES); f = loadFont("Univers45.vlw.gz"); setFont(f, 25); } void loop() { text(txt,20,20); } void keyPressed() { char k; k = (char)key; switch(k){ case 8: if(txt.length()>0){ txt = txt.substring(0,txt.length()-1); } default: txt=txt+k; break; } } |
|
|
|
|
|
skloopy
|
Re: 0053 output
« Reply #1 on: Apr 11th, 2003, 12:01pm » |
|
Yeah it seems like it happens with every BImage pixel that's drawn. Code:color pix[] = new int[25]; BImage b = new BImage(pix,5,5,RGB); image(b, 10, 10); |
| This prints the same output.
|
|
|
|
fry
|
Re: 0053 output
« Reply #2 on: Apr 11th, 2003, 5:44pm » |
|
yeah, i didn't turn off the internal debugging flag for some of the image/polygon code i had been working on. actually, two versions of my code got merged and the one with the debug enabled won out. fixed for 0054 (available soon). sorry 'bout that.
|
|
|
|
|