Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
The align constants, use for everything using aligning (shapes, text).
|
|
The cap style constants, use for lineCap()
|
|
The line join style constants, use for lineJoin() and strokeStyle().
|
|
Keyboard keycode constants to make identifying keys simple.
|
|
The global composite operations constants.
|
Method Attributes | Method Name and Description |
---|---|
rad(radians)
Converts radians to degrees, useful for drawing calls that expect degrees.
|
Field Detail
{object}
ALIGN
The align constants, use for everything using aligning (shapes, text).
You can use the text values directly if you like.
Note that some of these values are valid only for texts (HANGING, ALPHABETIC, IDEOGRAPHIC and START, END).
Defined in: canvas-1.2.dev.js.
Defined in: canvas-1.2.dev.js.
- Since:
- 1.0
{object}
CAP
The cap style constants, use for lineCap()
Defined in: canvas-1.2.dev.js.
Defined in: canvas-1.2.dev.js.
- Since:
- 1.0
{object}
JOIN
The line join style constants, use for lineJoin() and strokeStyle().
Defined in: canvas-1.2.dev.js.
Defined in: canvas-1.2.dev.js.
- Since:
- 1.0
{object}
KC
Keyboard keycode constants to make identifying keys simple.
Use for key press callbacks and kb.isDown() method.
Defined in: canvas-1.2.dev.js.
Defined in: canvas-1.2.dev.js.
- Since:
- 1.0
{object}
OP
The global composite operations constants. Use for setCompositeOperation(), beginComposite().
Defined in: canvas-1.2.dev.js.
Defined in: canvas-1.2.dev.js.
- Since:
- 1.0
Method Detail
{float}
rad(radians)
Converts radians to degrees, useful for drawing calls that expect degrees.
Defined in: canvas-1.2.dev.js.
Defined in: canvas-1.2.dev.js.
- Parameters:
- {float} radians
- Angle in radians to convert to degrees
- Since:
- 1.0
- Returns:
- {float} The angle in degrees