Constructor
new Checkerboard(optionsopt)
Shrinks alternating tiles of the old image to reveal the new image.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
options |
Object |
<optional> |
Effect settings; duration defaults to 600 milliseconds. |
- Source:
Extends
Members
duration :number
Effect duration in milliseconds, excluding scene initialization.
Configure before starting an effect; must be finite and greater than zero.
Type:
- number
- Inherited From:
- Default Value:
- 600
- Source:
tileSize :number
Tile size in internal pixels, a positive integer.
Type:
- number
- Source:
Methods
render(canvas, from, to, progress) → {undefined}
Draws an effect frame. The target is cleared before each call.
Parameters:
| Name | Type | Description |
|---|---|---|
canvas |
rune.display.Canvas | Output canvas. |
from |
rune.display.Canvas | Frozen previous image. |
to |
rune.display.Canvas | Frozen next image. |
progress |
number | Normalized progress from zero to one. |
- Overrides:
- Source:
Returns:
- Type
- undefined