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

Classes organised alphabetically

Color

componentToHex -> {String}

returns a color hex value from an integer

Name Type Description
c Integer 0 - 255

rgbToHex -> {String}

returns a color hex value from an 3 integers

Name Type Description
r Integer 0 - 255
g Integer 0 - 255
b Integer 0 - 255

random -> {String}

returns a random color as a hex string