agentscript
Version:
AgentScript Model in Model/View architecture
115 lines • 2.01 kB
JavaScript
const json = [
{
"command": "reset()",
"id": 1728927569824,
"name": "reset",
"position": {
"x": 32,
"y": 63
},
"type": "button"
},
{
"command": "anim.setFps(value)",
"id": 1728682054456,
"max": "60",
"min": "0",
"name": "fps",
"position": {
"x": 179,
"y": 38
},
"step": "1",
"type": "range",
"value": "30"
},
{
"id": 1729270887157,
"type": "output",
"name": "ticks",
"position": {
"x": 336,
"y": 37
},
"monitor": "model.ticks",
"fps": "10",
"command": null
},
{
"id": 1729463191305,
"type": "range",
"name": "patchSize",
"command": "view.reset(value)",
"position": {
"x": 191,
"y": 155
},
"min": "1",
"max": "15",
"step": "1",
"value": "10"
},
{
"id": 1729463877025,
"type": "button",
"name": "downloadCanvas",
"command": "view.downloadCanvas()",
"position": {
"x": 56,
"y": 232
}
},
{
"id": 1729464380401,
"type": "range",
"name": "turtleSize",
"command": "view.drawOptions.turtlesSize = value",
"position": {
"x": 33,
"y": 159
},
"min": "1",
"max": "10",
"step": "1",
"value": "3"
},
{
"id": 1729535684833,
"type": "button",
"name": "downloadElements",
"command": "util.downloadJsonModule(json, 'elements.js')",
"position": {
"x": 190,
"y": 231
}
},
{
"id": 1729638667060,
"type": "dropdown",
"name": "shape",
"command": "view.drawOptions.turtlesShape = value",
"position": {
"x": 97,
"y": 37
},
"options": [
"circle",
"dart",
"person",
"bug"
],
"selected": "bug"
},
{
"id": 1730141024864,
"type": "checkbox",
"name": "run",
"command": "checked ? anim.start() : anim.stop()",
"position": {
"x": 28,
"y": 32
},
"checked": false
}
]
export default json