Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

p5.js create button

let button; //Defines Button As A Variable
function setup(){
	button = createButton('label', 'value'/*Optional*/) //Creates <button>
  	button.position(x, y) //Sets Location Of Button
  	button.addClass('Class Name')
}
 
PREVIOUS NEXT
Tagged: #create #button
ADD COMMENT
Topic
Name
4+5 =