Skip to main content
Defines the shape used at the ends of open stroke segments.
  • butt – squared, no extension.
  • round – semicircular cap.
  • square – squared, extends past the end point.
self.paint = Paint.with({
  color = Color.rgb(255, 100, 50),
  cap = 'round',
  style = 'stroke',
})