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.

    • 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 color1
        outerRadius - how much of the shape should be filled entirely with color2
        centerX - 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 color1
        outerRadius - how much of the shape should be filled entirely with color2
        centerX - the center of the gradient, in the x-axis.
      • PolyColor.Gradient.Type.Radial

        PolyColor.Gradient.Type.Radial(Float innerRadius, Float outerRadius)
        Parameters:
        innerRadius - how much of the shape should be filled entirely with color1
        outerRadius - how much of the shape should be filled entirely with color2