entity/shape_primitives_gallery¶
Goal¶
See the built-in shape kinds side by side and understand how fill, stroke, and rotation affect them.
Why this tutorial exists¶
Mini Arcade can render several entity shapes without custom draw code. This example makes the supported primitives explicit:
rectcircletrianglelinepoly
Source map¶
Settings profile:
examples/settings/entity/shape_primitives_gallery.ymlExample builder:
examples/catalog/entity/shape_primitives_gallery/main.pyScene:
examples/catalog/entity/shape_primitives_gallery/scenes/scene.pyBuilt-in queued renderer:
packages/mini-arcade-core/src/mini_arcade_core/scenes/systems/builtins/__init__.py
What to verify¶
You should see:
a filled rounded rectangle
a filled circle
an outlined rotating triangle
a dashed line
a polygon rendered from
shape.points
Run¶
mini-arcade run --example entity/shape_primitives_gallery
mini-arcade run --example entity/shape_primitives_gallery --pass-through --backend pygame
mini-arcade run --example entity/shape_primitives_gallery --pass-through --backend native
Key idea¶
The scene does not implement custom geometry drawing. It creates entities and lets the built-in queued renderer choose the correct draw operation for each shape.