Shift

Shifts the items in a list by a number of positions. With wrapping, items pushed off one end reappear at the other. Otherwise they are dropped, shortening the list.

Interface

Inputs

ParameterDetailsPossible Types
List

The list of data to shift.

Primary Input

Artboard[]
Color[]
Gradient[]
Graphic[]
Raster[]
String[]
Transform[]
Vec2[]
Vector[]
bool[]
f32[]
f64[]
u32[]
u64[]
Amount

How many positions to shift each item. Positive values shift items toward the start of the list, negative toward the end.

Default: 0

f64
Wrap

Whether items shifted off one end wrap around to the other. When off, they are dropped and the list gets shorter.

Default: true

bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

String[]
bool[]
f32[]
f64[]
u32[]
u64[]
Vec2[]
Transform[]
Vector[]
Graphic[]
Raster[]
Color[]
Gradient[]
Artboard[]