VectorComposite.LineCap
EnumThe 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
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
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