Welcome to the Bridgetek Community!
Please read our Welcome Note
Technical Support enquires
please contact the team @ Bridgetek Support
Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology


void EVE_widget_circle(const int16_t xc0, const int16_t yc0, const uint16_t radius, const uint16_t border, const uint32_t bgcolor)
{
EVE_save_context();
EVE_begin(EVE_POINTS);
EVE_point_size(radius);
EVE_vertex2f(xc0, yc0);
EVE_color_rgb(bgcolor);
EVE_point_size((uint16_t) (radius - border));
EVE_vertex2f(xc0, yc0);
EVE_end();
EVE_restore_context();
}
void EVE_widget_circle(const int16_t xc0, const int16_t yc0, const uint16_t radius, const uint16_t border)
{
EVE_save_context();
EVE_color_mask(0, 0, 0, 0);
EVE_stencil_func(EVE_ALWAYS, 0x01, 0x01);
EVE_stencil_op(EVE_REPLACE, EVE_REPLACE);
EVE_point_size((uint16_t) (radius - border));
EVE_begin(EVE_POINTS);
EVE_vertex2f(xc0, yc0);
// EVE_end();
EVE_color_mask(1, 1, 1, 1);
EVE_stencil_func(EVE_NOTEQUAL, 0x01, 0x01);
EVE_stencil_op(EVE_KEEP, EVE_KEEP);
EVE_point_size(radius);
// EVE_begin(EVE_POINTS);
EVE_vertex2f(xc0, yc0);
// EVE_end();
EVE_color_mask(0, 0, 0, 0);
EVE_stencil_func(EVE_ALWAYS, 0x00, 0x01);
EVE_stencil_op(EVE_REPLACE, EVE_REPLACE);
// EVE_begin(EVE_POINTS);
EVE_vertex2f(xc0, yc0);
EVE_end();
EVE_restore_context();
}
EVE_color_rgb(BLACK);
EVE_cmd_text(40, 350, 31, 0, "The quick brown fox jumps...");
EVE_color_rgb(GREEN);
EVE_widget_circle(100,400, 50*16, 8*16);
EVE_color_rgb(RED);
EVE_widget_circle(150,400, 50*16, 8*16);
EVE_color_rgb(MAGENTA);
EVE_widget_circle(220,400, 50*16, 8*16);
void EVE_widget_rectangle(const int16_t xc0, const int16_t yc0, const int16_t wid, const int16_t hgt, const uint16_t border)
{
EVE_save_context();
EVE_line_width(border);
EVE_begin(EVE_LINE_STRIP);
EVE_vertex2f(xc0, yc0);
EVE_vertex2f(xc0 + wid, yc0);
EVE_vertex2f(xc0 + wid, yc0 + hgt);
EVE_vertex2f(xc0, yc0 + hgt);
EVE_vertex2f(xc0, yc0);
EVE_end();
EVE_restore_context();
}
Quote from: jipihorn on October 08, 2026, 01:34:05 PMHowever, whatever value I put here, I still get other interrupts like INT_SWAP or INT_CMDEMPTY.