name | type | arguments | Default | description |
---|---|---|---|---|
name | string | <optional> | '' |
The name of the Camera. |
x | number | <optional> | 0 |
The horizontal position of the Camera viewport. |
y | number | <optional> | 0 |
The vertical position of the Camera viewport. |
width | number | <optional> |
The width of the Camera viewport. |
|
height | number | <optional> |
The height of the Camera viewport. |
|
zoom | number | <optional> | 1 |
The default zoom level of the Camera. |
rotation | number | <optional> | 0 |
The rotation of the Camera, in radians. |
roundPixels | boolean | <optional> | false |
Should the Camera round pixels before rendering? |
scrollX | number | <optional> | 0 |
The horizontal scroll position of the Camera. |
scrollY | number | <optional> | 0 |
The vertical scroll position of the Camera. |
backgroundColor | false | string | <optional> | false |
A CSS color string controlling the Camera background color. |
bounds | object | <optional> |
Defines the Camera bounds. |
|
bounds.x | number | <optional> | 0 |
The top-left extent of the Camera bounds. |
bounds.y | number | <optional> | 0 |
The top-left extent of the Camera bounds. |
bounds.width | number | <optional> |
The width of the Camera bounds. |
|
bounds.height | number | <optional> |
The height of the Camera bounds. |