redeclipse.aftereffects module¶
-
redeclipse.aftereffects.
box
(world, height=None)[source]¶ A box added around the edge of the world.
Parameters: - world (redeclipse.Map) – Input world
- height (int or None) – Max height for the box to go to. None means entire area is boxed in.
Return type: None
-
redeclipse.aftereffects.
box_outline
(world, height=None)[source]¶ An outline of a box (similar to a grid) added around the edge of the world.
Parameters: - world (redeclipse.Map) – Input world
- height (int or None) – Max height for the box grid to go to. None means entire area is boxed in.
Return type: None
-
redeclipse.aftereffects.
decay
(world, position_function)[source]¶ A decay effect applied to the world. Decay at any specific point will occur when
random.random() > position_function
.Parameters: - world (redeclipse.Map) – Input world
- position_function (function) – Position function, as seen above in this module
Return type: None
-
redeclipse.aftereffects.
endcap
(world, upm)[source]¶ A box added around the edge of the world.
Parameters: world (redeclipse.Map) – Input world Return type: None
-
redeclipse.aftereffects.
gradient3
(x, y, z)[source]¶ An experimental gradient that also varies only based on z-depth
Parameters: - x (int) – x-coordinate to use in gradient generation
- y (int) – y-coordinate to use in gradient generation
- z (int) – x-coordinate to use in gradient generation
Returns: a float for that specific point.
Return type: float
-
redeclipse.aftereffects.
grid
(world, size=24)[source]¶ A grid effect applied to the world.
Parameters: - world (redeclipse.Map) – Input world
- size (int) – spacing between the grids
Return type: None
-
redeclipse.aftereffects.
growth
(world, position_function)[source]¶ Basically the opposite of decay. Apply SPARINGLY. Otherwise this will take forever to serialize and be completely non-functional.
Parameters: - world (redeclipse.Map) – Input world
- position_function (function) – Position function, as seen above in this module
Return type: None
-
redeclipse.aftereffects.
vertical_gradient
(x, y, z, slope=256)[source]¶ Function representing a vertical gradient going from f(z=0) = 1, f(z=256) = 0 smoothly.
Parameters: - x (int) – x-coordinate to use in gradient generation
- y (int) – y-coordinate to use in gradient generation
- z (int) – x-coordinate to use in gradient generation
Returns: a float for that specific point.
Return type: float
-
redeclipse.aftereffects.
vertical_gradient2
(x, y, z)[source]¶ Yet another variant that provides a reasonable level of decay.
Parameters: - x (int) – x-coordinate to use in gradient generation
- y (int) – y-coordinate to use in gradient generation
- z (int) – x-coordinate to use in gradient generation
Returns: a float for that specific point.
Return type: float
-
redeclipse.aftereffects.
vertical_gradient2inv
(x, y, z)[source]¶ Inverse of vertical_gradient2
Parameters: - x (int) – x-coordinate to use in gradient generation
- y (int) – y-coordinate to use in gradient generation
- z (int) – x-coordinate to use in gradient generation
Returns: a float for that specific point.
Return type: float