Class jaws.ParallaxLayer
A single layer that's contained by Parallax()
- Defined in: parallax.js
- Extends jaws.Sprite
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
jaws.ParallaxLayer(options)
|
| Field Attributes | Field Name and Description |
|---|---|
|
number, higher the number, the slower it will scroll with regards to other layers, defaults to 0
|
- Fields borrowed from class jaws.Sprite:
- alpha, anchor, angle, flipped, image, scale_image, x, y
Method Summary
- Methods borrowed from class jaws.Sprite:
- asCanvas
- asCanvasContext
- attributes
- draw
- flip
- move
- moveTo
- rect
- resize
- resizeTo
- rotate
- rotateTo
- scaleAll
- scaleHeight
- scaleImage
- scaleTo
- scaleWidth
- setAnchor
- setBottom
- setHeight
- setImage
- setLeft
- setRight
- setTop
- setWidth
- setX
- setY
- toJSON
Class Detail
jaws.ParallaxLayer(options)
- Parameters:
- options
Field Detail
damping
number, higher the number, the slower it will scroll with regards to other layers, defaults to 0