Wes Mantooth - HTML5 Canvas Game Engine - Version 2.x - by Jeremy Heminger

Classes organised alphabetically

Buttons

pill -> {Void}

draws a simple pill shaped button

Name Type Description
i Number reference to the canvas id
x Number x coord where the button will be drawn
y Number y coord where the button will be drawn
width Number width of the button
height Number height of the button
radius Number the size of the rounded corners of the button
style Object the style settings for the button
Available settings:
 button:
Name Type Description
color String hexadecimal color
fill Enum color the border, the background or both fill , stroke, both
acolor Sring the color use in the hover event hexadecimal color
opacity Float alpha value between 0 - 1
 text:
Name Type Description
color String color or the button text hexadecimal color
font String font size, style and family
padding Number
text String the text to display on the button
events Object event callback
possible keys: ( hover, click )