P5js-DOM-Button

From Digipool-Wiki
Revision as of 13:41, 23 June 2019 by WikiSysop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Diese Beispiel it eine Erweiterung des Dom Examples auf der p5js Homepage

 myButton = createButton('submit');
 myButton.position(input.x + input.width, 65);
 myButton.size(fSize * 3, fSize * 2);
 myButton.mousePressed(playPause);
 myButton.style('opacity', 0);
 myButton.show();
 myButton.hide();