Expand description
Where each part of a sprite starts, and what it holds.
Constants§
- COLOR
- The brush’s first colour, straight RGBA.
- COLOR_
END - A gradient’s second colour, straight RGBA.
- DETAIL
- A fill or a stroke: the corner radii, top-left, top-right, bottom-right, bottom-left. An arc: start angle, sweep, cap (0 butt, 1 round, 2 square). A line: half width, cap.
- FRAME
- The quad: x, y, width, height.
- GEOMETRY
- The geometry, by kind. A texture: the rect the whole texture covers. A fill or a stroke: the rect. An arc: centre x and y, inner and outer radius. A line: start x and y, end x and y.
- GRADIENT
- A gradient’s geometry: linear start x, y and end x, y; radial centre x, y and radius; sweep centre x, y.
- KIND
- What the quad holds (
super::SpriteKind), the texture it shows (0 for none), how it blends (0 source over, 1 destination out) and its brush (0 solid, 1 linear, 2 radial, 3 sweep). - STOPS
- A gradient’s two stops, then the origin its dither is measured from.
- STROKE
- A fill: whether its corners are rounded (1) or not (0). A stroke: half width and join (0 miter, 1 round, 2 bevel). Third: a gradient’s tile mode (0 clamp, 1 repeated, 2 mirror, 3 decal).