Terrain Generation
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
## WHAT IS IT?
(a general understanding of what the model is trying to show or explain)
## HOW IT WORKS
(what rules the agents use to create the overall behavior of the model)
## HOW TO USE IT
(how to use the model, including a description of each of the items in the Interface tab)
## THINGS TO NOTICE
(suggested things for the user to notice while running the model)
## THINGS TO TRY
(suggested things for the user to try to do (move sliders, switches, etc.) with the model)
## EXTENDING THE MODEL
(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)
## NETLOGO FEATURES
(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)
## RELATED MODELS
(models in the NetLogo Models Library and elsewhere which are of related interest)
## CREDITS AND REFERENCES
(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)
Comments and Questions
;;NOTE: ADD WATER LEVEL SLIDER AND ADJUST RECOLOR ACCORDINGLY patches-own[ elevation ] to setup clear-all ask patches with [pzcor = 0] [ sprout 1] ask turtles [ set shape "circle" set color 5 set size .2 ] end to generate ask patches [ set elevation -1 * amplitude + random (2 * amplitude)] repeat smoothness [diffuse elevation 1] if biome = "desert" [ repeat 15 [diffuse elevation 1]] ask turtles [ set zcor elevation] ask turtles [ recolor ] end to recolor if biome = "tropics"[ set color 99 if zcor < 6 [set color 5] if zcor < 3.5 [set color 55] if zcor < waterLevel [set color 105] if (zcor < (waterLevel + .5) and zcor > waterLevel) [set color 44] ] if biome = "Boreal forest" [ set color 99 if zcor < 1 [ let tree? (random 2) if tree? < 1 [ set color 53]] if zcor < waterLevel [ set color 87] ] if biome = "desert" [ set color 44 set zcor elevation ] if biome = "temperate forest" [ set color 99 if zcor < 6 [ set color 4] if zcor < 3.5 [ let tree_type (random 2) ifelse tree_type < 1 [ set color 53][set color 55]] if zcor < waterLevel [ set color 105] ] if color = 105 [ let z zcor let x xcor let y ycor ask patches with [pzcor = waterLevel and pxcor = x and pycor = y] [ sprout 1 [ set shape "circle" set color 105 set size .2 ] ] ] if color = 87 [ let z zcor let x xcor let y ycor ask patches with [pzcor = waterLevel and pxcor = x and pycor = y] [ sprout 1 [ set shape "circle" set color 87 set size .2 ] ] ] end
There is only one version of this model, created 18 days ago by Miles Ohly.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.