Package icyllis.arc3d.sketch
package icyllis.arc3d.sketch
Sketch is a set of public 2D rendering API.
-
ClassDescription
Blender
represents a custom blend function in the pipeline.Blend modes, all the blend equations apply to premultiplied colors.A Canvas provides an interface for drawing 2D geometries, images, and how the drawing is clipped and transformed.ThePointMode
selects if an array of points is drawn as discrete points, as lines, or as an open polygon.SaveLayerFlags provides options that may be used in any combination in SaveLayerRec, defining how layer allocated by saveLayer() operates.TheSrcRectConstraint
controls the behavior at the edge of source rect, provided to drawImageRect() when there is any filtering.Clip ops.Base class for drawing devices.Font controls options applied when drawing text.Geometry solvers.Represents a CPU glyph + digest information for GPU drawing, managed byStrike
.GlyphRun provides raw buffer views and represents a text run.Builds and provides a reusableGlyphRunList
.GlyphRunList provides a buffer view to GlyphRuns and additional drawing info.Image describes a two-dimensional array of pixels to draw.Base class for image filters (sometimes known as image effects, or post-processing effects).This class represents a 3x3 matrix and a 2D transformation, its components correspond to x, y, and w of a 4x4 matrix, where z is discarded.Interface to a read-only view of a 3x3 matrix for 2D transformation.The NoPixelsDevice draws nothing, but tracks device's clip.Paint
controls options applied when drawing.TheAlign
specifies the treatment where the stroke is placed in relation to the object edge, this only applies to closed contours.TheCap
specifies the treatment for the beginning and ending of stroked lines and paths.TheJoin
specifies the treatment where lines and curve segments join on a stroked path.SetStyle
to fill, stroke, or both fill and stroke geometry.ThePath
object contains mutable path elements.Segment constants correspond to each drawing verb type in path; for instance, if path contains only lines, only the Line bit is set.AcceptsPath
elements.PathMeasure
provides measurements on segments of path contours (lines, quadratic curves, cubic curves), such as determining the length of the path, and/or finding the position and tangent along it.PathStroker is aPathConsumer
that converts paths by stroking paths.Represents a rounded rectangle with a bounds and a pair of radii for each corner.The ScalerContext controls the rasterization with a specified typeface and rasterization options.Interface for geometric shapes that have area.The font strike holds the results fromScalerContext
.Descriptor of font strike.A reusable strike desc for lookup.This class collects stroke params from paint and constructs new paths by stroking geometries.Surface is responsible for managing the pixels that a canvas draws into.TextBlob combines multiple text runs into an immutable container.Helper class for constructing TextBlob.Typeface class specifies the typeface (font face) and intrinsic style of a font.An immutable set of vertex data that can be used withCanvas.drawVertices(icyllis.arc3d.sketch.Vertices, icyllis.arc3d.sketch.Blender, icyllis.arc3d.sketch.Paint)
.