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

# Factorio Prototype Docs Version 2.0.77

# SpriteVariations - Prototype Docs

## SpriteVariations :: struct or SpriteSheet or array[Sprite] Example code

## Properties

- default
- sorted

sheet | :: SpriteSheet |

sheet | :: SpriteSheet |

## Properties

### sheet :: SpriteSheet

## Examples

    -- array of sprites
    pictures =
    {
      {size = 64, filename = "__base__/graphics/icons/coal.png", scale = 0.5, mipmap_count = 4},
      {size = 64, filename = "__base__/graphics/icons/coal-1.png", scale = 0.5, mipmap_count = 4},
      {size = 64, filename = "__base__/graphics/icons/coal-2.png", scale = 0.5, mipmap_count = 4},
      {size = 64, filename = "__base__/graphics/icons/coal-3.png", scale = 0.5, mipmap_count = 4}
    }

    -- sprite sheet using "sheet"
    connection_patches_connected =
    {
      sheet =
      {
        filename = "__base__/graphics/entity/nuclear-reactor/reactor-connect-patches.png",
        width = 64,
        height = 64,
        variation_count = 12,
        scale = 0.5
      }
    }

Type used in

- BeaconModuleVisualization::pictures
- ConnectableEntityGraphics::single
- ConnectableEntityGraphics::straight_vertical
- ConnectableEntityGraphics::straight_horizontal
- ConnectableEntityGraphics::corner_right_down
- ConnectableEntityGraphics::corner_left_down
- ConnectableEntityGraphics::corner_right_up
- ConnectableEntityGraphics::corner_left_up
- ConnectableEntityGraphics::t_up
- ConnectableEntityGraphics::t_right
- ConnectableEntityGraphics::t_down
- ConnectableEntityGraphics::t_left
- ConnectableEntityGraphics::ending_up
- ConnectableEntityGraphics::ending_right
- ConnectableEntityGraphics::ending_down
- ConnectableEntityGraphics::ending_left
- ConnectableEntityGraphics::cross
- DecorativePrototype::pictures
- EnemySpawnerGraphicsSet::integration
- FireFlamePrototype::burnt_patch_pictures
- FishPrototype::pictures
- ItemPrototype::pictures
- OrientedCliffPrototype::pictures
- OrientedCliffPrototype::pictures_lower
- RailFenceDirectionSet::north
- RailFenceDirectionSet::northeast
- RailFenceDirectionSet::east
- RailFenceDirectionSet::southeast
- RailFenceDirectionSet::south
- RailFenceDirectionSet::southwest
- RailFenceDirectionSet::west
- RailFenceDirectionSet::northwest
- RailPieceLayers::metals
- RailPieceLayers::backplates
- RailPieceLayers::ties
- RailPieceLayers::stone_path
- RailPieceLayers::stone_path_background
- ReactorPrototype::connection_patches_connected
- ReactorPrototype::connection_patches_disconnected
- ReactorPrototype::heat_connection_patches_connected
- ReactorPrototype::heat_connection_patches_disconnected
- SimpleEntityPrototype::pictures
- SimpleEntityPrototype::lower_pictures
- SimpleEntityWithOwnerPrototype::pictures
- SimpleEntityWithOwnerPrototype::lower_pictures
- SolarPanelPrototype::picture
- SolarPanelPrototype::overlay
- TransportBeltConnectorFrame::frame_back_patch
- TransportBeltConnectorFrame::frame_front_patch
- TreePrototype::pictures
- WallPictures::single
- WallPictures::straight_vertical
- WallPictures::straight_horizontal
- WallPictures::corner_right_down
- WallPictures::corner_left_down
- WallPictures::t_up
- WallPictures::ending_right
- WallPictures::ending_left
- WallPictures::filling
- WaterReflectionDefinition::pictures