Class GuiAnimatedBorder
java.lang.Object
com.render.api.gui.GuiAnimatedBorder
Animated border effect configuration for GUI components.
The moving ring is centered on the authored border edge. Its optional glow may extend outside the component's own clip path, while ancestor clips still constrain the decoration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the animated border color in ARGB format.color(int argb) Deprecated.color(RenderColor color) Sets the animated border color in ARGB format.copy()Returns a detached copy of this effect configuration.floatReturns the glow intensity used by the animated border.glowStrength(float glowStrength) Sets the glow intensity used by the animated border.floatReturns the fraction of the border perimeter covered by the animated segment.lengthFraction(float lengthFraction) Sets the fraction of the border perimeter covered by the animated segment.floatspeed()Returns the animation speed multiplier.speed(float speed) Sets the animation speed multiplier.floatReturns the width multiplier applied to the border effect.widthMultiplier(float widthMultiplier) Sets the width multiplier applied to the border effect.
-
Constructor Details
-
GuiAnimatedBorder
public GuiAnimatedBorder()
-
-
Method Details
-
color
-
color
Sets the animated border color in ARGB format.- Parameters:
color- border color- Returns:
- this effect
-
color
Deprecated.Usecolor(RenderColor). -
speed
public float speed()Returns the animation speed multiplier.- Returns:
- animation speed
-
speed
Sets the animation speed multiplier.- Parameters:
speed- animation speed- Returns:
- this effect
-
widthMultiplier
public float widthMultiplier()Returns the width multiplier applied to the border effect.- Returns:
- width multiplier
-
widthMultiplier
Sets the width multiplier applied to the border effect.- Parameters:
widthMultiplier- width multiplier- Returns:
- this effect
-
glowStrength
public float glowStrength()Returns the glow intensity used by the animated border.- Returns:
- glow intensity
-
glowStrength
Sets the glow intensity used by the animated border.- Parameters:
glowStrength- glow intensity- Returns:
- this effect
-
lengthFraction
public float lengthFraction()Returns the fraction of the border perimeter covered by the animated segment.- Returns:
- border length fraction
-
lengthFraction
Sets the fraction of the border perimeter covered by the animated segment.- Parameters:
lengthFraction- border length fraction- Returns:
- this effect
-
copy
Returns a detached copy of this effect configuration.- Returns:
- copied effect configuration
-
color(RenderColor).