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
triangles and trapezoids in glcd component
Moderator: Benj
- 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
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 .
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 .
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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.
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.