The Draw horizontal line from ()()  length () colour () block is found under the Robotics palette in the extension evive TFT display. This block takes the coordinates of the starting point of a line as input along with length and colour. Starting from that point it draws a line extending to the right. This is a limitation of this block; it can only draw lines (horizontal) from a lower X-coordinate to a higher X-coordinate and not the other way round.

This block is works for Arduino mode only.
Remember that a higher X-coordinate will lie to the right of a lower one since the positive X-direction is towards right.

Draw horizontal line from ()() length () colour ()
Block Type:

  • This script connects the points, (10, 30) and (50, 30) through a green coloured horizontal line.
    evive TFT draw horizontal line

Close Menu