projects
/
slipway.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ff5052e
)
checkpoint
author
adam
<adam@megacz.com>
Mon, 25 Sep 2006 15:43:39 +0000
(16:43 +0100)
committer
adam
<adam@megacz.com>
Mon, 25 Sep 2006 15:43:39 +0000
(16:43 +0100)
src/edu/berkeley/slipway/AsyncPaperDemo.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/slipway/AsyncPaperDemo.java
b/src/edu/berkeley/slipway/AsyncPaperDemo.java
index
e289f2a
..
d41a59f
100644
(file)
--- a/
src/edu/berkeley/slipway/AsyncPaperDemo.java
+++ b/
src/edu/berkeley/slipway/AsyncPaperDemo.java
@@
-63,7
+63,8
@@
public class AsyncPaperDemo {
String fname = "data/size"+sizes+".csv";
if (!new File(fname).exists()) {
PrintWriter outfile = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fname)));
String fname = "data/size"+sizes+".csv";
if (!new File(fname).exists()) {
PrintWriter outfile = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fname)));
- for(int i=0; i<rsize/2+1; i++) test(i, rsize, outfile);
+ //for(int i=0; i<rsize/2+1; i++) test(i, rsize, outfile);
+ for(int i=rsize/2; i>=0; i--) test(i, rsize, outfile);
outfile.flush();
outfile.close();
}
outfile.flush();
outfile.close();
}
@@
-145,8
+146,9
@@
public class AsyncPaperDemo {
private void fill(int count, int size) {
//topLeft().ylut((count>0 && count<size/2-1) ? 0xff : 0x00);
private void fill(int count, int size) {
//topLeft().ylut((count>0 && count<size/2-1) ? 0xff : 0x00);
- topLeft().ylut(0x00);
- boolean yes = false;
+ if (count>0)
+ topLeft().ylut(0x00);
+ boolean yes = true;
for(int i=0; i<count; i++) {
if (yes) {
topLeft().xlut(0xff);
for(int i=0; i<count; i++) {
if (yes) {
topLeft().xlut(0xff);
@@
-166,10
+168,13
@@
public class AsyncPaperDemo {
if (count>0 && count<size/2-1) {
if (count>0 && count<size/2-1) {
- reconfigTopLeftPreserve(!yes);
- } else {
- reconfigTopLeft();
- }
+ reconfigTopLeftPreserve(yes);
+ } else if (count>0) {
+ topLeft().xlut(0xff);
+ fpslic.flush();
+ topLeft().ylut(0xff);
+ reconfigTopLeftPreserve(false);
+ }
//System.out.println("running.");
//try { System.in.read(); } catch (Exception _) { }
//System.out.println("running.");
//try { System.in.read(); } catch (Exception _) { }
@@
-209,6
+214,8
@@
public class AsyncPaperDemo {
Fpslic.Cell c = topLeft();
fpslic.flush();
if (on) c.ylut(0x00);
Fpslic.Cell c = topLeft();
fpslic.flush();
if (on) c.ylut(0x00);
+ //else c.ylut(0xff);
+ //fpslic.flush();
c.xlut(LUT_Z);
fpslic.flush();
c.ylut((LUT_SELF & ~LUT_OTHER) |
c.xlut(LUT_Z);
fpslic.flush();
c.ylut((LUT_SELF & ~LUT_OTHER) |