Preparing search index...
The search index is not available
API
API
render2d
LinearGradient
Class LinearGradient
x, y, x2, y2 are all percent from 0 to 1 when globalCoord is false
Hierarchy
default
LinearGradient
Index
Constructors
constructor
Properties
color
Stops
global
id?
type
x
x2
y
y2
Methods
add
Color
Stop
Constructors
constructor
new
Linear
Gradient
(
x
,
y
,
x2
,
y2
,
colorStops
?
,
globalCoord
?
)
:
LinearGradient
Parameters
x
:
number
y
:
number
x2
:
number
y2
:
number
Optional
colorStops
:
GradientColorStop
[]
Optional
globalCoord
:
boolean
Returns
LinearGradient
Properties
color
Stops
color
Stops
:
GradientColorStop
[]
global
global
:
boolean
Optional
id
id
?:
number
type
type
:
"linear"
x
x
:
number
x2
x2
:
number
y
y
:
number
y2
y2
:
number
Methods
add
Color
Stop
add
Color
Stop
(
offset
,
color
)
:
void
Parameters
offset
:
number
color
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
color
Stops
global
id
type
x
x2
y
y2
add
Color
Stop
API
AlgorithmPluginType
CANNON
Tiles3dPluginType
default
reactivity
render2d
BehaviorStatus
BlendFunction
EdgeDetectionMode
EffectAttribute
EmitterMode
GlitchMode
KernelSize
MapOpenWay
NodeType
NodeValueType
OrderIndex
ParallelBehaviorPolicy
PredicationMode
RayQueryType
RenderMode
Loading...
x, y, x2, y2 are all percent from 0 to 1 when globalCoord is false