-
CAMatrix.addNoise(float probability,
int minState,
int maxState)
Adds noise to the matrix.
CAMatrix.drawBoxAt(int x,
int y,
int w,
int state)
Sets all matrix cells in a square around the given x,y coordinates to the
requested state.
Clears the matrix and resets the generation counter.
CAMatrix.seedImage(int[] pixels,
int imgWidth,
int imgHeight)
Uses the given ARGB pixel array as seed mask for the matrix.
Assigns the given rule as evaluator for this matrix.
Sets the cell state at x,y.
Evolves the matrix to the next generation by applying one iteration of
the assigned
CARule
implementation.