{
"source": "JSON",
"data": "BLOCK",
"version": "0.0.1",
"type": "color",
"language": "javascript",
"extension": "webaudio",
"help": "Color",
"label": "Color",
"color": "50:150:0:150",
"group": "GUI",
"codes": {
"declaration": "\n// block_$id$ = $label$\nvar $port[value]$ = [];\n\nvar $port[invalue]$ = function(value){\n document.getElementById(\"block_$id$\").value = value;\n return true;\n };\n\n",
"execution": "\nfunction enter_value$id$(e){\n value = document.getElementById(\"block_$id$\").value;\n for (var i = 0; i < $port[value]$.length ; i++){\n $port[value]$[i](value);\n }\n};\n",
"html": "\n$prop[label]$
\n"
},
"properties": [
{
"name": "value",
"label": "Value",
"type": "Color",
"value": "#FFFFFF"
},
{
"name": "label",
"label": "Label",
"type": "String",
"value": "Label"
}
],
"ports": [
{
"type": "mosaicode_lib_javascript_webaudio.extensions.ports.color",
"label": "Value",
"conn_type": "Output",
"name": "value"
},
{
"type": "mosaicode_lib_javascript_webaudio.extensions.ports.color",
"label": "Value",
"conn_type": "Input",
"name": "invalue"
}
]
}