# Sandbox.Fill

A solid color, image or gradient fill. Defaults to no fill.

## Remarks

Gradients accept 2 to 8 stops ordered by offset in [0, 1]; equal offsets make hard transitions.
Colors interpolate in premultiplied sRGB. Vector2 points and absolute lengths use drawing coordinates;
percentages and calc expressions resolve from the shape's top-left against its width (X) and height (Y).
Gradient points must be finite and distinct; Auto and null are unsupported. Painter.Transform applies after resolution.

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`Fill`](/api/Sandbox.Fill/.ctor): Creates a solid fill.

## Properties

- [`None`](/api/Sandbox.Fill/None): No fill. Equivalent to the default value.

## Methods

- [`ConicGradient`](/api/Sandbox.Fill/ConicGradient): Starts a clockwise conic gradient. Angle is in degrees from right.
- [`Image`](/api/Sandbox.Fill/Image)
- [`LinearGradient`](/api/Sandbox.Fill/LinearGradient): Starts a linear gradient. Add 2 to 8 ordered stops before assigning it to a fill.
- [`RadialGradient`](/api/Sandbox.Fill/RadialGradient): Starts an elliptical radial gradient fitted to the shape bounds.
- [`Solid`](/api/Sandbox.Fill/Solid): Creates a solid fill.
- [`WithAngle`](/api/Sandbox.Fill/WithAngle): Returns a bounds-based linear or conic gradient with an absolute clockwise angle in degrees from right. Positioned gradients take their direction from their points; radial gradients have no angle.
- [`WithRotation`](/api/Sandbox.Fill/WithRotation): Rotate an image or gradient tile around its center, in degrees, without rotating the shape.
