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 = 6448; rowRange = range(0, rows-1)
cols = 9672; 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 = 10640/48 // 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 61443456 particles grid 64x9648*72]]
 
=={{header|Nim}}==
Anonymous user