Class RRectShader

java.lang.Object
icyllis.arc3d.sketch.shaders.RRectShader
All Implemented Interfaces:
RefCounted, Shader

@Experimental public final class RRectShader extends Object implements Shader
A shader that produces rounded rectangle effects, only 4-slice circular rounded rect is supported. This shader emits single channel coverage modulated by white alpha values.
  • Method Details

    • make

      @SharedPtr public static @Nullable @SharedPtr Shader make(@NonNull RRect rrect, float smoothRadius, boolean inverseFill, @Nullable Matrixc localMatrix)
    • getLeft

      public float getLeft()
    • getTop

      public float getTop()
    • getRight

      public float getRight()
    • getBottom

      public float getBottom()
    • getTopLeftRadius

      public float getTopLeftRadius()
    • getTopRightRadius

      public float getTopRightRadius()
    • getBottomRightRadius

      public float getBottomRightRadius()
    • getBottomLeftRadius

      public float getBottomLeftRadius()
    • getCenterX

      public float getCenterX()
      Returns a center point that can divide the rounded rectangle into 4 slices.
    • getCenterY

      public float getCenterY()
    • getSmoothRadius

      public float getSmoothRadius()
    • isInverseFill

      public boolean isInverseFill()