solution~LensFlare(coordinates, options)

模拟太阳光的效果

Summary

Methods:
getColor

获取阳光的颜色

getCoordinates

获得太阳光位置

getId

获取唯一标识

getType

获取类型

setColor

设置阳光的颜色

setCoordinates

设置太阳光位置

Constructor

new LensFlare(coordinates, options)

Parameters:
Name Type Description
coordinates Array.<Number>

太阳光源位置

options Object

配置项参数

Name Type Description
color String

颜色参数,默认'#ffffff' 白色

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
color String

setCoordinates(coordinates)

设置太阳光位置

Parameters:
Name Type Description
coordinates Array.<Number>

位置信息