Class Effects
java.lang.Object
nl.colorize.multimedialib.scene.effect.Effects
Utility methods for creating effects that can be attached to the currently
active scene as sub-scenes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SceneappearText(Text text, float duration) Makes text slowly appear over time, with more and more characters appearing on screen over time until the entire text is shown.static ScenescaleToFit(Sprite sprite) Changes a sprite's scale so that it fits the canvas.static SceneMakes graphics rotate 360 degrees within the specified duration, with a shorter duration meaning a faster rotation speed.
-
Method Details
-
scaleToFit
Changes a sprite's scale so that it fits the canvas. This method uses uniform scaling, i.e. the sprite's original aspect ratio will be retained.This method returns a
Scenethat should be registered as a sub-scene. This is because the sprite needs to be rescaled every frame, as the sprite's graphics might change over time. -
appearText
-
spin
-