Texture

Represents a hardware-accelerated image that can be efficiently rendered.

Constructor

Represents a hardware-accelerated image that can be efficiently rendered.

Properties


NameDescriptionType
alphaGet or set the alpha modulation of the texture as a float between 0.0 and 1.0.float
clip_areaGet or set the clip area (atlas region) of the texture.Rect
flipThe flip settings for horizontal and vertical mirroring.Texture.Flip
heightThe height of the texture in pixels.int
sizeThe dimensions of the texture as a Vec2.Vec2
tintGet or set the color tint applied to the texture.Color
widthThe width of the texture in pixels.int

Methods


Make Additive

make_additive() None

Set the texture to use additive blending mode.

In additive mode, the texture's colors are added to the destination, creating bright, glowing effects.

Make Multiply

make_multiply() None

Set the texture to use multiply blending mode.

In multiply mode, the texture's colors are multiplied with the destination, creating darkening and shadow effects.

Make Normal

make_normal() None

Set the texture to use normal (alpha) blending mode.

This is the default blending mode for standard transparency effects.