renderer.setDrawableOrder()
Changes the z-order (layer position) of a drawable within its layer group.
Syntax
renderer.setDrawableOrder(drawableID, order, group, optIsRelative, optMin)
Parameters
drawableID
Type: number
The ID of the drawable to reorder.
order
Type: number
New position. Can be absolute or relative (see optIsRelative).
group
Type: string
Layer group name ('background', 'video', 'pen', or 'sprite').
optIsRelative
Type: boolean (optional)
If true, order is relative to current position. Default: false.