Summary
Methods:
| getColor |
获取阳光的颜色 |
| getCoordinates |
获得太阳光位置 |
| getId |
获取唯一标识 |
| getType |
获取类型 |
| setColor |
设置阳光的颜色 |
| setCoordinates |
设置太阳光位置 |
Constructor
new LensFlare(coordinates, options)
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
coordinates |
Array.<Number> | 太阳光源位置 |
||||||
options |
Object | 配置项参数
|
Methods
-
getColor() → {String}
-
获取阳光的颜色
Returns:
String -
getCoordinates() → {Array.<Number>}
-
获得太阳光位置
Returns:
Array.<Number> -
getId() → {String}
-
获取唯一标识
Returns:
String -
getType() → {String}
-
获取类型
Returns:
String -
setColor(color)
-
设置阳光的颜色
Parameters:
Name Type Description colorString -
setCoordinates(coordinates)
-
设置太阳光位置
Parameters:
Name Type Description coordinatesArray.<Number> 位置信息