Types/LightFlickeringDefinition

From Official Factorio Wiki
Jump to navigation Jump to search

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/LightFlickeringDefinition.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Basics

Specifies the light flicker. Note that this defaults to "showing a white light" instead of the usually expected "showing nothing".

Optional properties

minimum_intensity

Type: Types/float

Default: 0.2

Brightness of the light in the range [0, 1] where 0 is no light and 1 is the maximum light.

maximum_intensity

Type: Types/float

Default: 0.8

Brightness of the light in the range [0, 1] where 0 is no light and 1 is the maximum light.

derivation_change_frequency

Type: Types/float

Default: 0.3

derivation_change_deviation

Type: Types/float

Default: 0.06

border_fix_speed

Type: Types/float

Default: 0.02

minimum_light_size

Type: Types/float

Default: 0.5

The radius of the light in tiles. Note, that the light gets darker near the edges, so the effective size of the light seems to be smaller.

light_intensity_to_size_coefficient

Type: Types/float

Default: 0.5

color

Type: Types/Color

Default: {r=1, g=1, b=1} (White)

Color of the light.