Package icyllis.arc3d.sketch
package icyllis.arc3d.sketch
Sketch is a set of public 2D rendering API.
-
ClassDescription
Blenderrepresents 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.ThePointModeselects 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.TheSrcRectConstraintcontrols 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.Paintcontrols options applied when drawing.TheAlignspecifies the treatment where the stroke is placed in relation to the object edge, this only applies to closed contours.TheCapspecifies the treatment for the beginning and ending of stroked lines and paths.TheJoinspecifies the treatment where lines and curve segments join on a stroked path.SetStyleto fill, stroke, or both fill and stroke geometry.ThePathobject 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.AcceptsPathelements.PathMeasureprovides 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 aPathConsumerthat 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).