Appearance
spriteLine
SpriteLine
Kind: global class
- SpriteLine
- new SpriteLine(options)
- .getLineMaterial(lineWidth, map) ⇒
material
- .createLineGeometry(path) ⇒
geometry
new SpriteLine(options)
贴图道路流动线
Param | Type | Description |
---|---|---|
options | object | 参数 |
options.name | string | 图层名字 |
options.speed | number | 流动速度 |
options.lineWidth | number | 线宽度 |
options.map | string | 贴图路径 |
options.path | Array | 道路坐标数组 |