triangles and trapezoids in glcd component

Moderator: Benj

Post Reply
Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

triangles and trapezoids in glcd component

Post by Alkaline »

Hi to all

I wanted to know if there is any possibility of including triangles and trapezoids as drawable shapes from i glcd like ili9341

Regards

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: triangles and trapezoids in glcd component

Post by Benj »

Hello,

I think unless you want these to be filled you can simply do this with lines. If you create a macro with 6 parameters, x1,y1,x2,y2,x3,y3 and then inside the macro draw lines between the coordinates then this should do the triangle for you. You can then do the similar for the trapeziod.

If you do want them filled then that is a different matter and will require a bit more work and thought :D .

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

Re: triangles and trapezoids in glcd component

Post by Alkaline »

Hello Benj

I would also need them filled to create more complex geometric shapes.

In fact, with the triangle and a little work I would be able to create trapezoids and other figures.

Now I'm making the volume icons with simple rectangles.

I managed to make them more pleasant using bitmaps but they take up space.

Post Reply