ReflectionEffect

ReflectionEffect class

This class specifies a reflection effect.

class ReflectionEffect;

Properties

PropertyTypeDescription
typeReflectionEffectTypeGets and sets the preset reflection effect.
transparencynumberGets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).
sizenumberGets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage
blurnumberGets and sets the blur radius,in unit of points.
directionnumberGets and sets the direction of the alpha gradient ramp relative to the shape itself.
distancenumberGets and sets how far to distance the shadow,in unit of points.
fadeDirectionnumberGets and sets the direction to offset the reflection.
rotWithShapebooleanGets and sets if the reflection should rotate with the shape.

type

Gets and sets the preset reflection effect.

type : ReflectionEffectType;

transparency

Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).

transparency : number;

size

Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage

size : number;

blur

Gets and sets the blur radius,in unit of points.

blur : number;

direction

Gets and sets the direction of the alpha gradient ramp relative to the shape itself.

direction : number;

distance

Gets and sets how far to distance the shadow,in unit of points.

distance : number;

fadeDirection

Gets and sets the direction to offset the reflection.

fadeDirection : number;

rotWithShape

Gets and sets if the reflection should rotate with the shape.

rotWithShape : boolean;