Draw a line on canvas context
The canvas context
The color of the line
The start x coordinate
The start y coordinate
The ending x coordinate
The ending y coordinate
The line thickness
The LineCapStyle (butt, round, or square)
Draw a round rectangle on a canvas context
The canvas context
The top-left x coordinate
The top-left y coordinate
The width of the rectangle
The height of the rectangle
The border radius of the rectangle
The Color to stroke rectangle with
The Color to fill rectangle with
A canvas linecap style. "butt" is the default flush style, "round" is a semi-circle cap with a radius half the width of the line, and "square" is a rectangle that is an equal width and half height cap.