Test Cell splitShift functionality (infinite scroll)
Click on the canvas to launch a new carpet
To note: Javascript is not running in this browser environment. The canvas element is ignored; instead a placeholder image displays where the canvas would have appeared.
Test purpose
- Generate new Cells to act as the carpet fabric and pattern respectively.
- Create a scene with a background carpet fabric and a repeating tiled pattern.
- Animate the scene using the new Cell's splitShift() function. The canvas will react to mouse position over it, shifting the carpet and pattern Cells to create an "infinite scrolling" effect.
- Clicking on the canvas will generate a new carpet and pattern.
- Check also that all entitys used to create the pattern get properly cleared from the library as soon as pattern creation completes.
Touch test: not required
Annotated code