-
Notifications
You must be signed in to change notification settings - Fork 50
Fade effect
koca2000 edited this page Aug 9, 2018
·
1 revision
Since 1.2.2 you can choose different settings for fade in and fade out effect. By default fade is disabled (FadeType.NONE
).
You have to set FadeType to enable fade effect. Default duration is 60 ticks (3 seconds).
Fade fadeIn = sp.getFadeIn(); //sp is SongPlayer; you can also use getFadeOut
fadeIn.setFadeType(FadeType.LINEAR);
fadeIn.setDuration(60); //in ticks!