Class GuiSvgAnimation
java.lang.Object
com.render.api.gui.GuiSvgAnimation
Immutable sampled animation for a retained SVG attribute.
Animations use the owning retained view's animation clock. Sampling is quantized to a bounded rate so a value changes only when a new raster frame is due; unchanged samples do not increment the SVG document generation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy that reverses direction on every odd iteration.static GuiSvgAnimationcolor(RenderColor from, RenderColor to, double durationSeconds) Creates an sRGB color animation serialized as an SVG hexadecimal color.static GuiSvgAnimationCreates a discrete animation that advances through the supplied values.static GuiSvgAnimationnumber(float from, float to, double durationSeconds) Creates a numeric SVG attribute animation.Returns a copy that repeats indefinitely.withDelay(double seconds) Returns a copy with an initial delay.withEasing(GuiEasing value) Returns a copy with a different easing function.withIterations(double count) Returns a copy with a finite iteration count.withSampleRate(float value) Returns a copy with a raster-sampling rate in frames per second.
-
Method Details
-
number
Creates a numeric SVG attribute animation. -
color
Creates an sRGB color animation serialized as an SVG hexadecimal color. -
discrete
Creates a discrete animation that advances through the supplied values. -
withDelay
Returns a copy with an initial delay. -
withIterations
Returns a copy with a finite iteration count. -
repeating
Returns a copy that repeats indefinitely. -
alternating
Returns a copy that reverses direction on every odd iteration. -
withEasing
Returns a copy with a different easing function. -
withSampleRate
Returns a copy with a raster-sampling rate in frames per second.The rate is bounded to 120 samples per second.
-