public override void AddGradient(GradientBuilder builder)
 {
     builder.AddRadialGradient(
         new Point(0.5, 0.5),
         RadialGradientShape.Circle,
         RadialGradientSize.ClosestSide);
 }
        public void Parse(CssReader reader, GradientBuilder builder)
        {
            var isRepeating = reader.Read().Trim() == CssToken.RepeatingRadialGradient;

            var token          = reader.ReadNext().Trim();
            var internalReader = new CssReader(token, ' ');

            var shape     = GetShape(internalReader);
            var shapeSize = GetShapeSize(internalReader);

            var(position, flags) = GetPositionWithFlags(internalReader);

            builder.AddRadialGradient(position, shape, shapeSize, flags, isRepeating);
        }
 public override void AddGradientTo(GradientBuilder builder)
 {
     builder.AddRadialGradient(g => g
                               .Circle().At(0.5, 0.5)
                               .StretchTo(RadialGradientSize.ClosestSide));
 }