The canvas context to draw on.
The width of the line.
The first position of the line.
The second position of the line.
The color of the line.
The opacity of the line.
Whether the line should be drawn in HDR mode or not.
OptionalpeakNits: number
The peak nits value
Optionalmode: HdrMode
The HDR mode
Draws a grab line between two points using canvas API in the given context.