Page 1 of 1

triangles and trapezoids in glcd component

Posted: Mon Sep 28, 2020 4:12 pm
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

Re: triangles and trapezoids in glcd component

Posted: Mon Sep 28, 2020 5:34 pm
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 .

Re: triangles and trapezoids in glcd component

Posted: Mon Sep 28, 2020 5:45 pm
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.