Skip to main content

TensorMath.drawLine

Function

Draws a line segment connecting two points.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

drawLine(imgTensor, imgShape, point1, point2, color, thickness, lineType, shift): void

Draws a line segment connecting two points.

Parameters

ParameterType
imgTensorFloat32Array
imgShapevec3
point1vec2
point2vec2
colorvec4
thicknessnumber
lineTypenumber
shiftnumber

Returns

void