Package processing.awt
Class PShapeJava2D.LinearGradientPaint
java.lang.Object
processing.awt.PShapeJava2D.LinearGradientPaint
- All Implemented Interfaces:
Paint,Transparency
- Enclosing class:
- PShapeJava2D
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumclass -
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionLinearGradientPaint(float x1, float y1, float x2, float y2, float[] offset, int[] color, int count, float opacity, AffineTransform xform) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Color[]float[]int
-
Constructor Details
-
LinearGradientPaint
public LinearGradientPaint(float x1, float y1, float x2, float y2, float[] offset, int[] color, int count, float opacity, AffineTransform xform)
-
-
Method Details
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContextin interfacePaint
-
getStartPoint
-
getEndPoint
-
getTransform
-
getColorSpace
-
getCycleMethod
-
getColors
-
getFractions
public float[] getFractions() -
getTransparency
public int getTransparency()- Specified by:
getTransparencyin interfaceTransparency
-