Enumerations

Shared between Sketch and PGraphics.

RendererKind
Renderer2DSkia software rasterizer — the default. Everything under Drawing.
Renderer3DOffscreen OpenGL 3.3. Set once via Size()/CreateGraphics() and locked for that context's lifetime. See 3D — Getting started.
ColorSpaceMode
RGBEach argument 0–255 (default).
HSBHue 0–360, saturation/brightness 0–100.
ShapeAlignMode
Cornerx, y, width, height (default for rect/shape).
CornersTwo opposite corners.
CenterCenter point, width, height (default for ellipse).
RadiusCenter point, x-radius, y-radius.
ArcMode
OpenUnconnected arc.
ChordClosed with a straight line between ends.
PieClosed through the center.
StrokeCapKind
RoundRounded line end.
SquareFlush end (Skia's "Butt").
ProjectExtends past the endpoint (Skia's "Square").
StrokeJoinKind
MiterSharp corner.
BevelFlattened corner.
RoundRounded corner.
ShapeKind
PolygonDefault — supports curved segments.
PointsEach vertex drawn as a point.
LinesVertices grouped in pairs.
TrianglesGrouped in threes; supports mesh rendering.
TriangleFan / TriangleStripShared-vertex triangles.
Quads / QuadStripGrouped or shared-vertex quads.
Under Renderer3D: Triangles/TriangleFan/TriangleStrip/Quads/QuadStrip/Polygon (triangulated as a fan) build and draw a real GPU mesh. Points/Lines aren't supported there — no meaningful normal to light them with — and throw NotSupportedException. See Custom 3D shapes.
PShapeType
Rect / Ellipse / Line / Triangle / QuadUsed with CreateShape(type, ...) to build a 2D primitive shape from raw coordinates.
TextAlignH / TextAlignV
Left, Center, RightHorizontal.
Baseline, Top, Center, BottomVertical.
MouseButtonKind / CursorKind
None, Left, Right, CenterMouse buttons.
Arrow, Cross, Hand, Move, Text, WaitCursor shapes.
BlendModeKind
BlendNormal alpha compositing (default).
AddAdditive.
Darkest / LightestPer-channel min / max.
Difference / ExclusionAbsolute difference, with/without a flattened midtone.
Multiply / ScreenDarkens / lightens by multiplying.
Overlay / HardLight / SoftLightContrast-boosting blends.
Dodge / BurnLightens / darkens the base by the blend color.
No SUBTRACT. Processing's SUBTRACT has no direct Skia blend-mode equivalent (it isn't a true channel subtraction in Skia's set), so it's deliberately left out rather than approximated poorly.
FilterKind
Gray / Invert / OpaqueGrayscale, invert RGB, force alpha to 255.
ThresholdBlack/white split at param (0–1, default 0.5).
PosterizeReduces to param levels per channel.
Blurparam is the pixel radius.
Erode / DilateNot implemented — throws NotSupportedException.
TextureModeKind
ImageVertex(x, y, u, v)'s u/v are pixel coordinates into the texture (Processing's own default).
Normalu/v are already 0–1 — DanaProcessing's default; see the note under Custom shapes.
TextureWrapKind
ClampRepeats the edge pixel outside the 0–1 range (default).
RepeatTiles the texture.
TextRenderMode
ModelRegular text drawn straight to the canvas (default, and the only mode implemented).
ShapeNot implemented — throws NotSupportedException.