Class: Button

Button(x, y, action, texto)

new Button(x, y, action, texto)

A Button
Parameters:
Name Type Default Description
x number 0 The X coordinate of the button
y number 0 The Y Coordinate of the button
action function the action to perform
texto stringk Text to display
Source:

Methods

click()

On Click executes the function
Source:

mouseIn()

Checks if mouse is inside the button
Source:

render()

draws the Button
Source: