TensorMath.drawLine
FunctionDraws a line segment connecting two points.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
drawLine(
imgTensor,imgShape,point1,point2,color,thickness,lineType,shift):void
Draws a line segment connecting two points.
Parameters
| Parameter | Type |
|---|---|
imgTensor | Float32Array |
imgShape | vec3 |
point1 | vec2 |
point2 | vec2 |
color | vec4 |
thickness | number |
lineType | number |
shift | number |
Returns
void