|
Author |
Topic: smooth() issue/problem? (Read 245 times) |
|
dlb
|
smooth() issue/problem?
« on: Aug 1st, 2003, 11:48pm » |
|
I have following problem using smooth() command, when I make ellipses and there are about 100 of them and they are covering each other, shows up weird result, I don't know if there is problem in my syntax or that's an issue, but see for yourself. Without using smooth() method everything seems ok, except for non antialiasing edges of ellipses. And used folowing code: try { size(600, 600); background(0); noStroke(); smooth(); fill(255, 0, 0); InputStream input = loadStream("six.txt"); InputStreamReader isr = new InputStreamReader(input); BufferedReader reader = new BufferedReader(isr); String line; float x, y, er; while ((line = reader.readLine()) != null) { float list[] = splitFloats(line, '|'); x = floor(list[0]); y = floor(list[1]); er = floor(list[2]); ellipse(x, y, er, er); } } catch (IOException e) { System.err.println("Exception caught: " + e.getMessage()); } this try syntax was copied from this posting in syntax forum and modified it for myself.
|
|
|
|
|