Home       Comp Core Examples       Comp Projects

Grid

The "grid" comp will draw a grid on the screen.

Grid comp takes in these arguments:

Arg Name Arg Type Explanation
cellWidth number The width of each grid square
cellHeight number The height of each grid square.
color string The color of grid lines.

Following are comp props (unique to grid Comp).

Prop Name Prop Type Explanation
Prop Name Prop Type Explanation
cellWidth AniNumber | AniPerc Represents the width of each grid square
cellHeight AniNumber | AniPerc Represents the height of each grid square
showHorizontalLines AniBoolean Show/hide horizontal lines.
showVerticalLines AniBoolean Show/hide vertical lines.
lineWidthVertical AniBoolean width of vertical lines.
lineWidthHorizontal AniBoolean width of horizontal lines.
colorHorizontalLines AniBoolean color of horizontal lines.
colorVerticalines AniBoolean color of vertical lines.
colorNumbers AniColor color of grid line numbers.
showNumbers AniBoolean show/hide numbers.