Abelian sandpile model: Difference between revisions

no edit summary
imported>Chinhouse
No edit summary
imported>Chinhouse
No edit summary
Line 2,532:
color.purple, color.blue, color.navy]
 
rows = 4864; rowRange = range(0, rows-1)
cols = 7296; colRange = range(0, cols-1)
particlesOfSand = rows * cols
divBase = particlesOfSand / (colors.len - 4)
Line 2,572:
display(4).mode = displayMode.tile
td = display(4)
td.cellSize = 1510 // size of cells on screen
td.extent = [cols, rows]
td.overlap = 0 // adds a small gap between cells
Line 2,605:
key.get()
</syntaxhighlight>
[[File:800px-Miniscript_abelian_sandpille.png|800px|thumb|center|Image for 6144 particles grid 64x96]
 
=={{header|Nim}}==
Anonymous user