Shadow Class

Shadow(bluropt, coloropt, offsetXopt, offsetYopt)

阴影样式

Fx构造函数

# new Shadow(bluropt, coloropt, offsetXopt, offsetYopt)

阴影样式

参数:
名称 类型 属性 默认值 描述
blur Number <optional>
0

阴影模糊度,默认为0,大于0有效

color String <optional>
#000000

阴影颜色,16进制颜色或rgb值或rgba值,默认黑色

offsetX Number <optional>
0

阴影X轴偏移,默认0

offsetY Number <optional>
0

阴影Y轴偏移,默认0

查看源代码 service/base/style/Shadow.js, line 4