Algorithmic art room
|
geometric meditations on khayyam |
a mondrian-style pattern generator
a thing seen, a thing known,
you looked, but did you see?
private Cell[][] makeNextGeneration() { Cell[][] next = new Cell[edge][edge]; for (int i = 0; i < edge; i++) { for (int j = 0; j < edge; j++) { int count = 0; if (pointOK(i + 1, j)) { count = count + cells[i + 1][j].life; } if (pointOK(i, j + 1)) { count = count + cells[i][j + 1].life; } if (pointOK(i - 1, j)) { count = count + cells[i - 1][j].life; } if (pointOK(i, j - 1)) { count = count + cells[i][j - 1].life; } //uncomment to experiment with eight neighbors /* if (pointOK(i + 1, j + 1)) { count = count + cells[i + 1][j + 1].life; } if (pointOK(i - 1, j - 1)) { count = count + cells[i - 1][j - 1].life; } if (pointOK(i + 1, j - 1)) { count = count + cells[i + 1][j - 1].life; } if (pointOK(i - 1, j + 1)) { count = count + cells[i - 1][j + 1].life; } */ count = count; next[i][j] = new Cell(size, count); } } return next; }
reach for the poinsot stars
|
egress from circle2 |
the immeasurable translated into terms of the measurable
Morley's theorem on angle trisectors
This site is best viewed with Microsoft Internet Explorer 4.0 or higher.
Please sign the guestbook.
You are visitor number
Applets and page design by
Joseph L. Pe
(Sun Certified Java Programmer).
© 1997-1999 by J. L. Pe.
All rights reserved.
Java is a trademark of Sun Microsystems, Mountain View,
California.