Module textureutil

Util for various functions regarding textures.

Functions

dummy (inner_color, border_color) Creates a dummy texture with the two given colors.
tileable (tile, horizontal, vertical) Creates a tile with the given tileable parameters.


Functions

dummy (inner_color, border_color)
Creates a dummy texture with the two given colors.

Parameters:

  • inner_color The color for the inner part, either a string with leading "#" or a Color.
  • border_color The color for the border, either a string with leading "#" or a Color.

Returns:

    The dummy texture (string).
tileable (tile, horizontal, vertical)
Creates a tile with the given tileable parameters.

Parameters:

  • tile The name of the tile.
  • horizontal If the tile is horizontally tileable.
  • vertical If the tile is vertically tileable.

Returns:

    A tile with tileable information.
generated by LDoc 1.4.2