Hey folks,
I have a question concerning Processingjs with HTML5 Input.
The example variableinputs that comes with 2.0a8 shows many HTML5 GUI Elements working with ProcessingJS. It doesn't show a simple Button however.
I can get a Button to show up by entering the code into the interface below.
Any ideas what could work?
I have a question concerning Processingjs with HTML5 Input.
The example variableinputs that comes with 2.0a8 shows many HTML5 GUI Elements working with ProcessingJS. It doesn't show a simple Button however.
I can get a Button to show up by entering the code into the interface below.
- this.addButton = function ( l, c ) {
var input = this.addInputField ( l, "button" );
input.value = c;
return input;
}
- void setController ( Controller ctlr )
{
// labels are supposed to be existing function names
element = ctlr.addButton( "ButtonCallback", true );
ctlr.setElementLabel( element, "A Button here" ); - }
Any ideas what could work?
1