Hello,
There are many ways to create a table. This could be using the built in graphic objects like lines and line strip to make the table. Or you could load an image if you wanted the table to have a particular theme (as you can then add text on top of a bitmap).
You can make it using a series of rectangles. As the rectangles are filled, you can draw two rectangles (the inner one slightly smaller) if you want just an outline.
Note: we used VERTEX2II here as the numbers are clearer (VERTEX2F uses *16 for each value as it uses 1/16th precision by default) but you can use VERTEX2F as it can use coordinates more than 511.
Also, we would recommend to use parameters instead of hard-coded widths etc. as it will make it easier to write the code,
We have a small code snippet of one way to do this too which is from a future appnote and so we can post that too
CLEAR_COLOR_RGB(255, 255, 255)
CLEAR(1, 1, 1)
BEGIN(RECTS)
LINE_WIDTH(16)
// Draw the overall background in black
COLOR_RGB(0, 0, 0)
// Table origin is 0,0 and each cell will be 100 wide by 50 tall
VERTEX2II(0, 0, 0, 0)
VERTEX2II(209, 109, 0, 0)
// Now draw the cells in light blue
COLOR_RGB(85, 170, 255)
// Top-left cell
VERTEX2II(3, 3, 0, 0) // +3 in X direction, +3 in Y direction (from top-left of table)
VERTEX2II(103, 53, 0, 0) // +100 in X direction, +50 in Y direction
//Top-Right Cell
VERTEX2II(107, 3, 0, 0)
VERTEX2II(207, 53, 0, 0)
VERTEX2II(3, 57, 0, 0)
VERTEX2II(103, 107, 0, 0)
VERTEX2II(107, 57, 0, 0)
VERTEX2II(207, 107, 0, 0)
END()
COLOR_RGB(0, 0, 0)
CMD_NUMBER(55, 28, 30, OPT_CENTER, 100)
CMD_NUMBER(155, 28, 30, OPT_CENTER, 300)
CMD_NUMBER(55, 82, 30, OPT_CENTER, 200)
CMD_NUMBER(155, 82, 30, OPT_CENTER, 400)
Best Regards, BRT Community