def setup createCanvas(100, 100) background(0) button = createButton('click me') button.position(0, 0) changeBG = Proc.new { val = rand(255) background(val) } button.mousePressed(changeBG) end