Triangles on Me TFT LCD Display


#1

Hello everyone,
I use a Mbot and I was wondering how to display triangles on the screen.
I know how to display boxes en texts.
Does anyone have an idea?


#2

you need to compile the programs in Arduino,and then upload the program to mBot.


#3

That is not what I mean.
I mean:
The code for displaying a point on the screen is: “PS(x, y, c);”
The code for displaying a box is: “BOX(x1, y1, x2, y2, c);”
But what is the code for displaying a triangle?
Something like: “TRI(x1, y1, x2, y2, x3, y3, c)”

PS
I use this screen: https://www.makeblock.com/project/me-tft-lcd-screen-2-2-inch


#4

we don’t have a single block for triangle,you can achive it by drawing 3 lines to get a triangle as below:
image


#5

Oke, thank you.
So it’s not possible to make a filled triangle. (With triangles you can make 3d objects and that would be nice)


#6

yes,currently don’t have this function,but will feedbck to R&D team to check if we will develop on it in thr future


#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.