GOAnimationBlink

Dynamic drawing flashing animation class
Name Type Description
options Object optional The object has the following properties:
Name Type Default Description
startTime Number 0 optional Animation start time, in seconds
duration Number 0 optional Animation duration, in seconds
name String "" optional Animation name, unique identification of animation
repeat Boolean false optional Whether to repeat the loop playback, the default is false
blinkInterval Number 500 optional Flashing interval, in milliseconds
blinkStyle blinkStyle BlinkAnimationBlinkStyle.Blink_Frequency optional Flash type
blinkNumber Number 0 optional Number of flashes
replaceStyle replaceStyle BlinkAnimationReplaceStyle.Replace_NoColor optional Color alternate type
startColor startColor new Color(0,0,1,1) optional Start color, default is blue
endColor endColor new Color(1,0,0,1) optional End color, the default is red

Members

blinkInterval : Number

Blink interval
Default Value: 500 ms

blinkNumber : Number

Number of flashes
Default Value: 0
Flash type
Default Value: Blink_Frequency

duration : Number

Animation duration, in seconds
Default Value: 0

endColor : Color

End color, the default is red
Default Value: Color(1,0,0,1)

name : String

Animation name, unique identification of animation
Default Value: ""

repeat : Boolean

Repeat loop playback, default false
Default Value: false
Flashing color alternate type
Default Value: Replace_NoColor

startColor : Color

Start color, default blue
Default Value: Color(0,0,1,1)

startTime : Number

Animation start time, in seconds
Default Value: 0

Methods

destroy()

Destroy objects and release resources.

getGOAnimationType()GOAnimationType

Get animation type
Returns:
Animation type

pause()

Pause animation

play()

Play animation

reset()

Reset animation

setAnimationName(name)Boolean

Set animation name
Name Type Description
name String Animation name
Returns:
Settings successful or not.

stop()

Stop animation