Create a button using createButton().

I want to create a button using createButton().I try to do this but its not working. please help me

var button;

function setup() {

createCanvas(200,300);

button=createButton("Start");

button.position(50,50);

}

function draw() {

background(100);

}

Tagged:

Answers

Sign In or Register to comment.