Skip to content

Stroke

⚠️ This documentation is auto-generated. Do not edit manually. Last tested: 2026-03-07 20:20:21

Shape border stroke. Uses SDF rendering, stroke width stays constant during scale animation.

Support Status: ✅ Fully Supported

  • Direction (direction): ✅ Supported (Stroke direction (centered, inside, outside))
  • Cap Style (cap): ✅ Supported (Line cap style)
  • Join Style (join): ✅ Supported (Line join style (miter, round, bevel))
  • Color (color): ✅ Supported (Stroke color)
  • Width (size): ✅ Supported (Stroke width (pixels))

Related Test Files:

  • basic/shape/shape.amproj
  • basic/shape/ex.amproj

Technical Details

XML Example

xml
<shape s=".rect">
    <path-stroke direction="centered" cap="round" join="round">
        <color value="#ff000000" />
        <size value="2.0" />
    </path-stroke>
</shape>

Released under the MIT License.