vectorsources
Class CellModel
java.lang.Object
vectorsources.CellModel
public class CellModel
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
running
public boolean running
antialiased
public boolean antialiased
display
public java.awt.image.BufferedImage display
display_data
public java.awt.image.DataBuffer display_data
display_graphics
public java.awt.Graphics display_graphics
renderer
public int renderer
colored
public boolean colored
trailer
public static java.awt.image.BufferedImage trailer
drawers
public CellModel.CellDrawer[] drawers
CellModel
public CellModel(int w,
int h)
- Parameters:
w
- h
-
setRenderer
public void setRenderer(int n)
- Parameters:
n
-
isAntiAliased
public boolean isAntiAliased()
- Returns:
setAntiAliased
public void setAntiAliased(boolean antialias)
- Parameters:
antialias
-
setArea
public void setArea(float f)
- Parameters:
f
-
setGrowth
public void setGrowth(float pow)
- Parameters:
pow
-
setRate
public void setRate(float f)
- Parameters:
f
-
setSigma
public void setSigma(float f)
- Parameters:
f
-
resetAll
public void resetAll()
resetEnvironment
public void resetEnvironment()
resetCellArray
public void resetCellArray()
resetCounter
public void resetCounter()
resetGraphics
public void resetGraphics()
resetImage
public void resetImage()
seedUniformRandom
public void seedUniformRandom(int n)
- Parameters:
n
-
addCell
public void addCell(float x,
float y)
- Parameters:
x
- y
-
iterate
public void iterate(int frames)
- Parameters:
frames
-
updatePopulation
public void updatePopulation()
updateEnvironment
public void updateEnvironment()
updateRegions
public void updateRegions()
updateImage
public void updateImage()
trailer
public static java.awt.image.BufferedImage trailer()
- Returns: