ColoredRectangle Constructor (Color, Color, Vector2, Anchor, NullableVector2) |
Create the rectangle with outline and fill colors.
Namespace:
GeonBit.UI.Entities
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public ColoredRectangle(
Color fillColor,
Color outlineColor,
Vector2 size,
Anchor anchor = Anchor.Auto,
Nullable<Vector2> offset = null
)
Parameters
- fillColor
- Type: Color
Rectangle fill color. - outlineColor
- Type: Color
Rectangle outline color. - size
- Type: Vector2
Rectangle size in pixels. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - offset (Optional)
- Type: SystemNullableVector2
Offset from position anchor.
See Also