Skip to main content

VectorComposite.LineCap

Enum

The line cap style for a stroked path — how the ends of open sub-paths and dash segments are rendered.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v370

The line cap style for a stroked path — how the ends of open sub-paths and dash segments are rendered. Mirrors the SVG stroke-linecap attribute. Pass to VectorStrokeBuilder#setCap.

Index

Enumeration Members

Example

var sb = VectorStrokeBuilder.create(6);
sb.setCap(VectorComposite.LineCap.Round);
var stroke = sb.build();

Enumeration Members

Butt

Butt: number

SPECS

No cap — the stroke ends exactly at the path endpoint. This is the SVG default.

Since

Lens Scripting Version 370


Round

Round: number

SPECS

A semicircular cap centered at the path endpoint, extending the stroke by half the stroke width.

Since

Lens Scripting Version 370


Square

Square: number

SPECS

A rectangular cap centered at the path endpoint, extending the stroke by half the stroke width.

Since

Lens Scripting Version 370