一个映射到条纹
Material 统一变量的 MaterialProperty。
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
具有如下属性的对象:
|
Members
readonly definitionChanged : Event
获取当此属性的定义发生更改时引发的事件。
如果对同一时间调用 getValue 将返回不同结果,则认为定义已更改。
evenColor : Property|undefined
获取或设置指定第一个
Color 的属性。
-
Default Value:
Color.WHITE
获取一个值,指示此属性是否为常量。如果 getValue 对当前定义始终返回相同结果,则该属性被视为常量。
oddColor : Property|undefined
获取或设置指定第二个
Color 的属性。
-
Default Value:
Color.BLACK
offset : Property|undefined
获取或设置数值属性,指定从图案的何处开始绘制;
0.0 表示偶数颜色的起点,1.0 表示奇数颜色的起点,2.0 再次回到偶数颜色,
任何倍数或分数值表示中间的位置。
-
Default Value:
0.0
orientation : Property|undefined
获取或设置指定
StripeOrientation 的属性。
-
Default Value:
StripeOrientation.HORIZONTAL
repeat : Property|undefined
Gets or sets the numeric Property specifying how many times the stripes repeat.
-
Default Value:
1.0
Methods
Compares this property to the provided property and returns
true if they are equal, false otherwise.
| Name | Type | Description |
|---|---|---|
other |
Property | optional The other property. |
Returns:
true if left and right are equal, false otherwise.
获取指定时间的
Material 类型。
| Name | Type | Description |
|---|---|---|
time |
JulianDate | 要获取类型的时间。 |
Returns:
材质类型。
获取属性在指定时间的值。
| Name | Type | Default | Description |
|---|---|---|---|
time |
JulianDate |
JulianDate.now()
|
optional 要获取值的时间。如果省略,则使用当前系统时间。 |
result |
object | optional 用于存储值的对象,如果省略,则创建并返回一个新实例。 |
Returns:
修改后的结果参数,如果未提供结果参数,则返回新实例。
