Uses of Class
toxi.sim.automata.CAMatrix
Packages that use CAMatrix
-
Uses of CAMatrix in toxi.sim.automata
Methods in toxi.sim.automata that return CAMatrixModifier and TypeMethodDescriptionCAMatrix.addNoise
(float probability) 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.CAMatrix.reset()
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.CAMatrix.setStateAt
(int x, int y, int state) Sets the cell state at x,y.CAMatrix.update()
Evolves the matrix to the next generation by applying one iteration of the assignedCARule
implementation.