Class: FMFlowline

FMFlowline

FMFlowline 提供一种具有流动颜色、可配和发光特效使用的效果

new fengmap.FMFlowline(map, options)

构造 FMFlowline 类

Name Type Description
map fengmap.FMMap

地图对象

options Object

流线参数

Name Type Description
points Array

顶点数组

color int

颜色

backgroundColor int

背景色

lineWidth int

线宽

speed number

0-1内设置,值越大,流动效果越快

Methods

addTo(floor)

添加到 floor

Name Type Description
floor fengmap.FMFloor

地图楼层对象

getBackgroundColor(){int}

获取背景色

Returns:
Type Description
int 背景色

getColor(){int}

获取颜色

Returns:
Type Description
int 颜色

getLineWidth(){int}

获取线宽

Returns:
Type Description
int 线宽

getSpeed(){number}

获取速度

Returns:
Type Description
number 速度

remove()

移除

setBackgroundColor(value)

设置背景色

Name Type Description
value int

setColor(value)

设置颜色

Name Type Description
value int

setLineWidth(value)

设置线宽

Name Type Description
value int

线宽

setSpeed(value)

设置速度

Name Type Description
value number

速度