GeonBit.UI Documentation
ColoredRectangle Constructor (Color, Vector2, Anchor, NullableVector2) |
Create the rectangle with just fill color.
Namespace: GeonBit.UI.Entities
Assembly: GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)

C#
public ColoredRectangle( Color fillColor, Vector2 size, Anchor anchor = Anchor.Auto, Nullable<Vector2> offset = null )
Parameters
- fillColor
- Type: Color
Rectangle fill color. - size
- Type: Vector2
Rectangle size in pixels. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - offset (Optional)
- Type: SystemNullableVector2
Offset from position anchor.
