Class Shader

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class Shader
    extends RefCnt
    • Constructor Detail

      • Shader

        @Internal
        public Shader​(long ptr)
    • Method Detail

      • makeLinearGradient

        public static Shader makeLinearGradient​(io.github.humbleui.types.Point p0,
                                                io.github.humbleui.types.Point p1,
                                                int[] colors)
      • makeLinearGradient

        public static Shader makeLinearGradient​(float x0,
                                                float y0,
                                                float x1,
                                                float y1,
                                                int[] colors)
      • makeLinearGradient

        public static Shader makeLinearGradient​(io.github.humbleui.types.Point p0,
                                                io.github.humbleui.types.Point p1,
                                                int[] colors,
                                                float[] positions)
      • makeLinearGradient

        public static Shader makeLinearGradient​(float x0,
                                                float y0,
                                                float x1,
                                                float y1,
                                                int[] colors,
                                                float[] positions)
      • makeLinearGradient

        public static Shader makeLinearGradient​(io.github.humbleui.types.Point p0,
                                                io.github.humbleui.types.Point p1,
                                                int[] colors,
                                                float[] positions,
                                                GradientStyle style)
      • makeLinearGradient

        public static Shader makeLinearGradient​(float x0,
                                                float y0,
                                                float x1,
                                                float y1,
                                                int[] colors,
                                                float[] positions,
                                                GradientStyle style)
      • makeLinearGradient

        public static Shader makeLinearGradient​(io.github.humbleui.types.Point p0,
                                                io.github.humbleui.types.Point p1,
                                                Color4f[] colors,
                                                ColorSpace cs,
                                                float[] positions,
                                                GradientStyle style)
      • makeLinearGradient

        public static Shader makeLinearGradient​(float x0,
                                                float y0,
                                                float x1,
                                                float y1,
                                                Color4f[] colors,
                                                ColorSpace cs,
                                                float[] positions,
                                                GradientStyle style)
      • makeRadialGradient

        public static Shader makeRadialGradient​(io.github.humbleui.types.Point center,
                                                float r,
                                                int[] colors)
      • makeRadialGradient

        public static Shader makeRadialGradient​(float x,
                                                float y,
                                                float r,
                                                int[] colors)
      • makeRadialGradient

        public static Shader makeRadialGradient​(io.github.humbleui.types.Point center,
                                                float r,
                                                int[] colors,
                                                float[] positions)
      • makeRadialGradient

        public static Shader makeRadialGradient​(float x,
                                                float y,
                                                float r,
                                                int[] colors,
                                                float[] positions)
      • makeRadialGradient

        public static Shader makeRadialGradient​(io.github.humbleui.types.Point center,
                                                float r,
                                                int[] colors,
                                                float[] positions,
                                                GradientStyle style)
      • makeRadialGradient

        public static Shader makeRadialGradient​(float x,
                                                float y,
                                                float r,
                                                int[] colors,
                                                float[] positions,
                                                GradientStyle style)
      • makeRadialGradient

        public static Shader makeRadialGradient​(io.github.humbleui.types.Point center,
                                                float r,
                                                Color4f[] colors,
                                                ColorSpace cs,
                                                float[] positions,
                                                GradientStyle style)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(io.github.humbleui.types.Point p0,
                                                         float r0,
                                                         io.github.humbleui.types.Point p1,
                                                         float r1,
                                                         int[] colors)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(float x0,
                                                         float y0,
                                                         float r0,
                                                         float x1,
                                                         float y1,
                                                         float r1,
                                                         int[] colors)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(io.github.humbleui.types.Point p0,
                                                         float r0,
                                                         io.github.humbleui.types.Point p1,
                                                         float r1,
                                                         int[] colors,
                                                         float[] positions)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(float x0,
                                                         float y0,
                                                         float r0,
                                                         float x1,
                                                         float y1,
                                                         float r1,
                                                         int[] colors,
                                                         float[] positions)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(io.github.humbleui.types.Point p0,
                                                         float r0,
                                                         io.github.humbleui.types.Point p1,
                                                         float r1,
                                                         int[] colors,
                                                         float[] positions,
                                                         GradientStyle style)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(float x0,
                                                         float y0,
                                                         float r0,
                                                         float x1,
                                                         float y1,
                                                         float r1,
                                                         int[] colors,
                                                         float[] positions,
                                                         GradientStyle style)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(io.github.humbleui.types.Point p0,
                                                         float r0,
                                                         io.github.humbleui.types.Point p1,
                                                         float r1,
                                                         Color4f[] colors,
                                                         ColorSpace cs,
                                                         float[] positions,
                                                         GradientStyle style)
      • makeTwoPointConicalGradient

        public static Shader makeTwoPointConicalGradient​(float x0,
                                                         float y0,
                                                         float r0,
                                                         float x1,
                                                         float y1,
                                                         float r1,
                                                         Color4f[] colors,
                                                         ColorSpace cs,
                                                         float[] positions,
                                                         GradientStyle style)
      • makeSweepGradient

        public static Shader makeSweepGradient​(io.github.humbleui.types.Point center,
                                               int[] colors)
      • makeSweepGradient

        public static Shader makeSweepGradient​(float x,
                                               float y,
                                               int[] colors)
      • makeSweepGradient

        public static Shader makeSweepGradient​(io.github.humbleui.types.Point center,
                                               int[] colors,
                                               float[] positions)
      • makeSweepGradient

        public static Shader makeSweepGradient​(float x,
                                               float y,
                                               int[] colors,
                                               float[] positions)
      • makeSweepGradient

        public static Shader makeSweepGradient​(io.github.humbleui.types.Point center,
                                               int[] colors,
                                               float[] positions,
                                               GradientStyle style)
      • makeSweepGradient

        public static Shader makeSweepGradient​(float x,
                                               float y,
                                               int[] colors,
                                               float[] positions,
                                               GradientStyle style)
      • makeSweepGradient

        public static Shader makeSweepGradient​(io.github.humbleui.types.Point center,
                                               float startAngle,
                                               float endAngle,
                                               int[] colors,
                                               float[] positions,
                                               GradientStyle style)
      • makeSweepGradient

        public static Shader makeSweepGradient​(float x,
                                               float y,
                                               float startAngle,
                                               float endAngle,
                                               int[] colors,
                                               float[] positions,
                                               GradientStyle style)
      • makeSweepGradient

        public static Shader makeSweepGradient​(io.github.humbleui.types.Point center,
                                               float startAngle,
                                               float endAngle,
                                               Color4f[] colors,
                                               ColorSpace cs,
                                               float[] positions,
                                               GradientStyle style)
      • makeSweepGradient

        public static Shader makeSweepGradient​(float x,
                                               float y,
                                               float startAngle,
                                               float endAngle,
                                               Color4f[] colors,
                                               ColorSpace cs,
                                               float[] positions,
                                               GradientStyle style)
      • makeEmpty

        public static Shader makeEmpty()
      • makeColor

        public static Shader makeColor​(int color)
      • _nMakeWithColorFilter

        public static long _nMakeWithColorFilter​(long ptr,
                                                 long colorFilterPtr)
      • _nMakeLinearGradient

        public static long _nMakeLinearGradient​(float x0,
                                                float y0,
                                                float x1,
                                                float y1,
                                                int[] colors,
                                                float[] positions,
                                                int tileType,
                                                int flags,
                                                float[] matrix)
      • _nMakeLinearGradientCS

        public static long _nMakeLinearGradientCS​(float x0,
                                                  float y0,
                                                  float x1,
                                                  float y1,
                                                  float[] colors,
                                                  long colorSpacePtr,
                                                  float[] positions,
                                                  int tileType,
                                                  int flags,
                                                  float[] matrix)
      • _nMakeRadialGradient

        public static long _nMakeRadialGradient​(float x,
                                                float y,
                                                float r,
                                                int[] colors,
                                                float[] positions,
                                                int tileType,
                                                int flags,
                                                float[] matrix)
      • _nMakeRadialGradientCS

        public static long _nMakeRadialGradientCS​(float x,
                                                  float y,
                                                  float r,
                                                  float[] colors,
                                                  long colorSpacePtr,
                                                  float[] positions,
                                                  int tileType,
                                                  int flags,
                                                  float[] matrix)
      • _nMakeTwoPointConicalGradient

        public static long _nMakeTwoPointConicalGradient​(float x0,
                                                         float y0,
                                                         float r0,
                                                         float x1,
                                                         float y1,
                                                         float r1,
                                                         int[] colors,
                                                         float[] positions,
                                                         int tileType,
                                                         int flags,
                                                         float[] matrix)
      • _nMakeTwoPointConicalGradientCS

        public static long _nMakeTwoPointConicalGradientCS​(float x0,
                                                           float y0,
                                                           float r0,
                                                           float x1,
                                                           float y1,
                                                           float r1,
                                                           float[] colors,
                                                           long colorSpacePtr,
                                                           float[] positions,
                                                           int tileType,
                                                           int flags,
                                                           float[] matrix)
      • _nMakeSweepGradient

        public static long _nMakeSweepGradient​(float x,
                                               float y,
                                               float startAngle,
                                               float endAngle,
                                               int[] colors,
                                               float[] positions,
                                               int tileType,
                                               int flags,
                                               float[] matrix)
      • _nMakeSweepGradientCS

        public static long _nMakeSweepGradientCS​(float x,
                                                 float y,
                                                 float startAngle,
                                                 float endAngle,
                                                 float[] colors,
                                                 long colorSpacePtr,
                                                 float[] positions,
                                                 int tileType,
                                                 int flags,
                                                 float[] matrix)
      • _nMakeEmpty

        public static long _nMakeEmpty()
      • _nMakeColor

        public static long _nMakeColor​(int color)
      • _nMakeColorCS

        public static long _nMakeColorCS​(float r,
                                         float g,
                                         float b,
                                         float a,
                                         long colorSpacePtr)
      • _nMakeBlend

        public static long _nMakeBlend​(int blendMode,
                                       long dst,
                                       long src)