Pencil Code Reference > button

 

button creates an interactive control button

button creates an interactive, clickable control button.

button can be used to call a function or initiate an action when a user clicks the button.

It takes two arguments: first is the text for the button; second is a function to call whenever the user clicks the button.

  button
  "Forward", ->

  fd 50

WIP

Interactive commands are ....