Skip to content

Instantly share code, notes, and snippets.

@louismrose
Created July 25, 2013 12:49
Show Gist options
  • Save louismrose/6079294 to your computer and use it in GitHub Desktop.
Save louismrose/6079294 to your computer and use it in GitHub Desktop.
First cut of behavioural definition
{
"name": "State",
"properties": [
"name",
"recurrent",
"w",
"h"
],
"behavior": {
"tick" : {
"w" : "Math.cos(currentTime)*100",
"h" : "Math.sin(currentTime)*100"
}
},
"label": {
"for": [
"name"
],
"color": "green",
"placement": "internal",
"length": 15,
"pattern": "{0}"
},
"elements": [
{
"figure": "rounded",
"size": {
"width": "${w}",
"height": "${h}"
},
"fillColor": "${recurrent}",
"borderColor": "black",
"x": "${w}",
"y": 0,
"borderRadius": 10,
"strokeColor": "black"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment