Home       Comp Core Examples       Comp Projects

Line

Line component draws line on the screen.

This comp takes in following arguments at creation time.

Arg Name Arg Type Explanation
x1 Number The x axis of the starting vertex (mostly in percentage from 0 to 100) of the line
y1 Number The y axis of the starting vertex (mostly in percentage from 0 to 100) of the line
x2 Number The x axis of the ending vertex (mostly in percentage from 0 to 100) of the line
y2 Number The y axis of the ending vertex (mostly in percentage from 0 to 100) of the line.
color string Color of the line.

Following are comp props (props unique to Circle Component).

Prop Name Prop Type Explanation
x2 AniPerc | AniNumber The x axis of ending point of line.
y2 AniPerc | AniNumber The y axis of ending point of line.
lineWidth AniNumber The width of line