Package org.polyfrost.polyui.color
Class PolyColor.Gradient.Type.Radial
-
- All Implemented Interfaces:
-
org.polyfrost.polyui.color.PolyColor.Gradient.Type
public final class PolyColor.Gradient.Type.Radial implements PolyColor.Gradient.Type
Radial gradient.
Note that if your radii are very close together, you may just get a circle in a box.
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatinnerRadiusprivate final FloatouterRadiusprivate final FloatcenterXprivate final FloatcenterY
-
Constructor Summary
Constructors Constructor Description PolyColor.Gradient.Type.Radial(Float innerRadius, Float outerRadius, Float centerX, Float centerY)PolyColor.Gradient.Type.Radial(Float innerRadius, Float outerRadius, Float centerX)PolyColor.Gradient.Type.Radial(Float innerRadius, Float outerRadius)
-
Method Summary
Modifier and Type Method Description final FloatgetInnerRadius()final FloatgetOuterRadius()final FloatgetCenterX()final FloatgetCenterY()-
-
Constructor Detail
-
PolyColor.Gradient.Type.Radial
PolyColor.Gradient.Type.Radial(Float innerRadius, Float outerRadius, Float centerX, Float centerY)
- Parameters:
innerRadius- how much of the shape should be filled entirely with color1outerRadius- how much of the shape should be filled entirely with color2centerX- the center of the gradient, in the x-axis.centerY- the center of the gradient, in the y-axis.
-
PolyColor.Gradient.Type.Radial
PolyColor.Gradient.Type.Radial(Float innerRadius, Float outerRadius, Float centerX)
- Parameters:
innerRadius- how much of the shape should be filled entirely with color1outerRadius- how much of the shape should be filled entirely with color2centerX- the center of the gradient, in the x-axis.
-
-
Method Detail
-
getInnerRadius
final Float getInnerRadius()
-
getOuterRadius
final Float getOuterRadius()
-
getCenterX
final Float getCenterX()
-
getCenterY
final Float getCenterY()
-
-
-
-