Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# SingleGraphicProcessionLayer - Prototype Docs

## SingleGraphicProcessionLayer :: struct

## Properties

- default
- sorted

type | :: `"single-graphic"` |
graphic | :: ProcessionGraphic |
render_layer optional | :: RenderLayer |
secondary_draw_order optional | :: int8 |
relative_to optional | :: EffectRelativeTo | Where the sprite is centered.
Where the sprite is centered.
compensated_pivot optional | :: boolean | Swaps the order of sprite shift and rotation.
Swaps the order of sprite shift and rotation.
rotates_with_pod optional | :: boolean |
shift_rotates_with_pod optional | :: boolean | Only applied when the `relative_to` is `pod`.
Only applied when the `relative_to` is `pod`.
is_passenger_only optional | :: boolean |
clip_with_hatches optional | :: boolean |
animation_driven_by_curve optional | :: boolean |
frames | :: array[SingleGraphicLayerProcessionBezierControlPoint] |

frames | :: array[SingleGraphicLayerProcessionBezierControlPoint] |
graphic | :: ProcessionGraphic |
type | :: `"single-graphic"` |
animation_driven_by_curve optional | :: boolean |
clip_with_hatches optional | :: boolean |
compensated_pivot optional | :: boolean | Swaps the order of sprite shift and rotation.
Swaps the order of sprite shift and rotation.
is_passenger_only optional | :: boolean |
relative_to optional | :: EffectRelativeTo | Where the sprite is centered.
Where the sprite is centered.
render_layer optional | :: RenderLayer |
rotates_with_pod optional | :: boolean |
secondary_draw_order optional | :: int8 |
shift_rotates_with_pod optional | :: boolean | Only applied when the `relative_to` is `pod`.
Only applied when the `relative_to` is `pod`.

## Properties

### type :: `"single-graphic"`

### graphic :: ProcessionGraphic

### render_layer :: RenderLayer optional

Default: `"object"`

### secondary_draw_order :: int8 optional

Default: `0`

### relative_to :: EffectRelativeTo optional

Default: `"pod"`

Where the sprite is centered.

### compensated_pivot :: boolean optional

Default: `true`

Swaps the order of sprite shift and rotation.

### rotates_with_pod :: boolean optional

Default: `true`

### shift_rotates_with_pod :: boolean optional

Default: `true`

Only applied when the `relative_to` is `pod`.

### is_passenger_only :: boolean optional

Default: `false`

### clip_with_hatches :: boolean optional

Default: `true`

### animation_driven_by_curve :: boolean optional

Default: `false`

### frames :: array[SingleGraphicLayerProcessionBezierControlPoint]

#### SingleGraphicLayerProcessionBezierControlPoint :: struct

One frame in time for a Bezier interpolation.

## Properties

### timestamp :: MapTick optional

Mandatory if `opacity` or `tint` is defined.

### opacity :: double optional

Default: `1.0`

`opacity` and `opacity_t` interpolate a double smoothly over time.

### opacity_t :: double optional

Bidirectional tangent at the given timestamp.

### tint :: Color optional

Default: {1.0, 1.0, 1.0, 1.0}

`tint` and `tint_t` interpolate a color smoothly over time.

### tint_t :: Color optional

Bidirectional tangent at the given timestamp.

### rotation :: double optional

Default: `0.0`

`rotation` and `rotation_t` interpolate a double smoothly over time.

### rotation_t :: double optional

Bidirectional tangent at the given timestamp.

### scale :: double optional

Default: `1.0`

`scale` and `scale_t` interpolate a double smoothly over time.

### scale_t :: double optional

Bidirectional tangent at the given timestamp.

### shift :: Vector optional

Default: {0.0, 0.0}

`shift` and `shift_t` interpolate a vector smoothly over time using `shift_rate` and `shift_rate_t` for a 0-1 rate curve.

Vector value.

### shift_t :: Vector optional

Vector tangent.

### shift_rate :: double optional

Rate 0-1 value.

### shift_rate_t :: double optional

Rate tangent.

### frame :: float optional

Default: `0.0`

the frame of the pod animation played. Used only when 'animation_driven_by_curve' is enabled.

Type used in

- ProcessionLayer