GradientTexture
Inherits: Texture < Resource < Reference < Object
Gradient-filled texture.
Description
GradientTexture uses a Gradient to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see width).
Properties
|
Property Descriptions
Gradient gradient
Setter | set_gradient(value) |
Getter | get_gradient() |
The Gradient that will be used to fill the texture.
int width
Default |
|
Setter | set_width(value) |
Getter | get_width() |
The number of color samples that will be obtained from the Gradient.
© 2014–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_gradienttexture.html