/
GradientTexture.hx
38 lines (31 loc) · 1.18 KB
/
GradientTexture.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
GradientTexture uses a `godot.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 `godot.GradientTexture.width`). See also `godot.CurveTexture`.
**/
@:libType
@:csNative
@:native("Godot.GradientTexture")
@:autoBuild(godot.Godot.buildUserClass())
extern class GradientTexture extends godot.Texture {
/**
The number of color samples that will be obtained from the `godot.Gradient`.
**/
@:native("Width")
public var width:Int;
/**
The `godot.Gradient` that will be used to fill the texture.
**/
@:native("Gradient")
public var gradient:godot.Gradient;
@:native("new")
public function new():Void;
@:native("SetGradient")
public function setGradient(gradient:godot.Gradient):Void;
@:native("GetGradient")
public function getGradient():godot.Gradient;
@:native("SetWidth")
public function setWidth(width:Int):Void;
}