Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Repeat
GradientTexture2D.swift:32enum Repeat
Cases
case repeatNone
The gradient fill is restricted to the range defined by
fillFrom
tofillTo
offsets.case `repeat`
The texture is filled starting from
fillFrom
tofillTo
offsets, repeating the same pattern in both directions.case repeatMirror
The texture is filled starting from
fillFrom
tofillTo
offsets, mirroring the pattern in both directions.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (10) members.
Types
Type members
Instance members
var fill: GradientTexture2D.Fill
The gradient fill type, one of the
Fill
values. The texture is filled by interpolating colors starting fromfillFrom
tofillTo
offsets.var fillFrom: Vector2
The initial offset used to fill the texture specified in UV coordinates.
var fillTo: Vector2
The final offset used to fill the texture specified in UV coordinates.
var gradient: Gradient?
The
Gradient
used to fill the texture.var height: Int32
The number of vertical color samples that will be obtained from the
Gradient
, which also represents the texture’s height.var `repeat`: GradientTexture2D.Repeat
The gradient repeat type, one of the
Repeat
values. The texture is filled starting fromfillFrom
tofillTo
offsets by default, but the gradient fill can be repeated to cover the entire texture.var useHdr: Bool
If
true
, the generated texture will support high dynamic range (rgbaf
format). This allows for glow effects to work ifglowEnabled
istrue
. Iffalse
, the generated texture will use low dynamic range; overbright colors will be clamped (rgba8
format).var width: Int32
The number of horizontal color samples that will be obtained from the
Gradient
, which also represents the texture’s width.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.