Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Shapes Platform Support

Introduction

Shapes (Skia) support varies per platform. See below to see information about your platform.

MonoGame and KNI projects can use the following shapes:

  • Arc

  • Circle

  • Rectangle

The outline (stroke) of Circle and Rectangle, and Rectangle's fill (at square corners), render out of the box. Circle's fill, Rectangle's rounded corners, and the richer effects (gradients, drop shadows, and dashed strokes) are provided by the shape support package (Gum.Shapes.MonoGame or Gum.Shapes.KNI). Without the package those properties are saved but do not draw.

Other types, such as SVG or Lottie, are not currently supported.

For information on adding the shape support package to your project, see the Shapes page.

The older ColoredCircle, RoundedRectangle, and SolidRectangle shapes are being phased out in favor of Circle and Rectangle. They remain available so existing projects keep working, but will be removed in a future release.

FNA renders the outline (stroke) of Circle and Rectangle, and Rectangle's fill (at square corners), out of the box. Circle's fill, Rectangle's rounded corners, and the richer effects (gradients, drop shadows, dashed strokes) are not available on FNA because there is no shape support package for it. We are looking for contributors to help expand FNA shape support.

Raylib supports Circle and Rectangle natively, including fill, gradients, and drop shadows, with no extra package required.

Gradient-on-outline (a gradient applied to the stroke rather than the fill) is not yet implemented on raylib.

All shape types are fully supported.

Last updated

Was this helpful?