Built-In Namespace _global_
Method Attributes | Method Name and Description |
---|---|
check(_value, _default)
A utility function which checks if the given _value exists.
|
|
createCanvas(_id, _w, _h, _def)
A utility function for create a canvas element with the given ID, width, and
height.
|
|
exists(An)
A utility function that checks to see if a given set of objects all are
defined.
|
|
font(family, size, style, varient, weight)
A convenience function which creates a new Font object using nameless parameters.
|
|
toRadians(_degrees)
Utility function to convert degrees into radians.
|
Method Detail
check(_value, _default)
A utility function which checks if the given _value exists. If it does, it
returns that, otherwise it returns the given _default.
Defined in: Utilities.js.
Defined in: Utilities.js.
- Parameters:
- _value
- The value to check for.
- _default
- The value to return if the given _value doesn't exist.
createCanvas(_id, _w, _h, _def)
A utility function for create a canvas element with the given ID, width, and
height. It is not added to the document, that is left up to the caller.
Defined in: Utilities.js.
Defined in: Utilities.js.
- Parameters:
- _id
- - The ID of the canvas object that will be created.
- _w
- - The width of the canvas object.
- _h
- - The height of the canvas object.
- _def
- - The default content of the canvas object. This content is shown in browsers that don't support the HTML 5 Canvas element.
exists(An)
A utility function that checks to see if a given set of objects all are
defined. This does not check against null.
Defined in: Utilities.js.
Defined in: Utilities.js.
- Parameters:
- An
- undefined number of arguments.
font(family, size, style, varient, weight)
A convenience function which creates a new Font object using nameless parameters.
Defined in: Utilities.js.
Defined in: Utilities.js.
- Parameters:
- family
- size
- style
- varient
- weight
toRadians(_degrees)
Utility function to convert degrees into radians.
Defined in: Utilities.js.
Defined in: Utilities.js.
- Parameters:
- {Number} _degrees
- The degrees to convert.