Fillclass
A solid color, image or gradient fill. Defaults to no fill.
Note
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.
Constructors1
Showing 1 constructors
No results match this filter.
Methods25
Showing 25 methods
public static Sandbox.Fill Image(Sandbox.Texture texture, System.Nullable`1<Color> tint = null, System.Nullable`1<Sandbox.UI.Length> width = null, System.Nullable`1<Sandbox.UI.Length> height = null, System.Nullable`1<Sandbox.UI.Length> offsetX = null, System.Nullable`1<Sandbox.UI.Length> offsetY = null, Sandbox.UI.BackgroundRepeat repeat = 4, Sandbox.Rendering.FilterMode filter = 20)
| Parameter | Type | Description |
|---|---|---|
| texture | Texture | — |
| tint = null | Nullable<Color> | — |
| width = null | Nullable<Length> | — |
| height = null | Nullable<Length> | — |
| offsetX = null | Nullable<Length> | — |
| offsetY = null | Nullable<Length> | — |
| repeat = 4 | BackgroundRepeat | — |
| filter = 20 | FilterMode | — |
public static Sandbox.Fill Solid(Color color)
Creates a solid fill.
| Parameter | Type | Description |
|---|---|---|
| color | Color | — |
public Sandbox.Fill WithAngle(float degrees)
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.
| Parameter | Type | Description |
|---|---|---|
| degrees | float | — |
No results match this filter.
Properties1
Showing 1 properties
No results match this filter.