Summary

Textures are two-dimensional graphics that can display a built-in or custom image file, can be filled with a solid color with an optional alpha value or draw a gradient between two colors. Textures always reside on one of the frame's layers and render according to the level of the layer.


Properties

File

The path to the built-in or custom image file to be used.


AlphaMode

The blending mode to be used when layering multiple textures. Possible values are: DISABLE, BLEND, ALPHAKEY, ADD, or MOD.


Color

When no file is specified, Texture is filled with this color.


Gradient

A gradient Texture can be horizontally or vertically aligned. MinColor and MaxColor are both Colors that define the two colors that are used for the gradient.


TexCoords

Determines how much of the specified texture is to be shown. TexCoords has four values: "left", "right", "top", and "bottom". Each one specifies the coordinates of the source image using a scale value between 0 and 1. See the example to see how a Texture can be mirrored using TexCoords.


Example

The following example shows how transformation can be applied to a Texture using TexCoords and graphical effects achieved using AlphaMode. Click the checkbox to toggle mirroring of the Texture shown.