1
Discussion - EVE / Re: Drawing arcs and circles
« on: March 23, 2023, 03:11:18 PM »
Yes, ESP32 does support the trig functions, thanks
Another (slightly unrelated) question. Do you have an example to fill polygons (with a mix of convex/concave points)?
I found posts in this forum using the stencils, but when there is an irregular shape, the filling process fails somewhere as this snippet shows:
Another (slightly unrelated) question. Do you have an example to fill polygons (with a mix of convex/concave points)?
I found posts in this forum using the stencils, but when there is an irregular shape, the filling process fails somewhere as this snippet shows:
Code: [Select]
CLEAR(1, 1, 1)
SAVE_CONTEXT()
LINE_WIDTH(32)
COLOR_RGB(255, 255, 0)
STENCIL_OP(INCR, INCR)
COLOR_MASK(0,0,0,0)
BEGIN(EDGE_STRIP_L)
VERTEX2F(7232, 2848)
VERTEX2F(5984, 5344)
VERTEX2F(8272, 4144)
VERTEX2F(10496, 4944)
VERTEX2F(9760, 1504)
VERTEX2F(5920, 1504)
VERTEX2F(7232, 2848)
END()
STENCIL_OP(KEEP, KEEP)
COLOR_MASK(1,1,1,1)
STENCIL_FUNC(EQUAL, 1, 255)
CMD_GRADIENT(655, 38, 0x0000FF, 348, 416, 0xFF0000)