Code/Demos/AnimationShowcase/Components/Dot.cs
using Goo;
using Sandbox.UI;

namespace Sandbox.AnimationShowcase;

public static class Dot
{
    public static Container AtCorner( float left, float top, float size, Color color ) => new Container
    {
        Position        = PositionMode.Absolute,
        Left            = left,
        Top             = top,
        Width           = size,
        Height          = size,
        BorderRadius    = size / 2f,
        BackgroundColor = color,
        PointerEvents   = PointerEvents.None,
    };

    public static Container AtCenter( Vector2 center, float size, Color color )
        => AtCorner( center.x - size / 2f, center.y - size / 2f, size, color );
}