We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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);
}
Answers
Where is the
createButton()
function defined?yes , I'm also using here dom library.
Okay. Your code works fine. This is what I get: