pixel_shift_canvas
Shift entire canvas by (dx, dy) pixels for animation motion like bobbing or sliding. Optionally wrap pixels around edges for scrolling backgrounds.
Instructions
Shift the whole canvas by (dx, dy) pixels — quick motion between animation frames (bobbing, jumping, sliding).
Without wrap, pixels shifted past the edge are lost and vacated space is transparent; with wrap=true they re-enter from the opposite edge (good for scrolling backgrounds). Returns JSON {"canvas", "shift", "wrap"}; plus a rendered image when preview=true. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |