Class GuiShadow
java.lang.Object
com.render.api.gui.GuiShadow
Drop-shadow configuration for GUI components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatblur()Returns the blur radius in design-space pixels.blur(float blur) Sets the blur radius in design-space pixels.color()Returns the shadow color in ARGB format.color(int argb) Deprecated.color(RenderColor color) Sets the shadow color in ARGB format.copy()Returns a detached copy of this effect configuration.offset(float offsetX, float offsetY) Sets the shadow offset in design-space pixels.floatoffsetX()Returns the horizontal shadow offset in design-space pixels.floatoffsetY()Returns the vertical shadow offset in design-space pixels.floatspread()Returns the shadow spread in design-space pixels.spread(float spread) Sets the shadow spread in design-space pixels.
-
Constructor Details
-
GuiShadow
public GuiShadow()
-
-
Method Details
-
color
-
color
Sets the shadow color in ARGB format.- Parameters:
color- shadow color- Returns:
- this effect
-
color
Deprecated.Usecolor(RenderColor). -
blur
public float blur()Returns the blur radius in design-space pixels.- Returns:
- blur radius
-
blur
Sets the blur radius in design-space pixels.- Parameters:
blur- blur radius- Returns:
- this effect
-
spread
public float spread()Returns the shadow spread in design-space pixels.- Returns:
- shadow spread
-
spread
Sets the shadow spread in design-space pixels.- Parameters:
spread- shadow spread- Returns:
- this effect
-
offsetX
public float offsetX()Returns the horizontal shadow offset in design-space pixels.- Returns:
- horizontal offset
-
offsetY
public float offsetY()Returns the vertical shadow offset in design-space pixels.- Returns:
- vertical offset
-
offset
Sets the shadow offset in design-space pixels.- Parameters:
offsetX- horizontal offsetoffsetY- vertical offset- Returns:
- this effect
-
copy
Returns a detached copy of this effect configuration.- Returns:
- copied effect configuration
-
color(RenderColor).