Appearance
图片管道流动材质 PipelineflowMaterial
- @param
| 参数名 | type | 描述 | 默认值 |
|---|---|---|---|
| options | Object | 材质配置,属性参考下表 | - |
options 属性
| 属性名 | type | 描述 | 默认值 |
|---|---|---|---|
| image | String | 图片地址 | - |
| color | String | 颜色 | Cesium.Color.fromBytes(0, 255, 255, 255) |
| speed | Number | 速度 | 1 |
| repeat | Object | 重复规则 | { x: 1, y: 1 } |
| direction | Number | 动画方向 (1.0/-1.0) | 1.0 |
- @returns
| 返回值 | type | 描述 |
|---|---|---|
| material | Object | 材质。 |
js
let options = {
color: Cesium.Color.fromCssColorString("#6AE7FF"),
speed: 1, // 速度
image: img,
repeat: { x: 10, y: 2 },
direction: -1, // 动画方向 (1.0/-1.0)
};
let material = CM.Material.PipelineflowMaterial(options);