GDSTx library in teensy 4.1 (teensyduino 1.60-beta2) and NHD 5" FT813, Arduino IDE 1.8.19. Loaded from the SDIO reader using SdFat V2.2.3. The memory used is a 256Gb Canvas Go Plus microSD, formatted in exFat. The two png files appear normal

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
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu#include <GDSTx.h>
long previousMillis = 0;
long intervalo = 250;
int valor=0;
void setup()
{
GD.begin();
}
void loop()
{
GD.ClearColorRGB(0x100020);
GD.Clear();
GD.SaveContext(); //Guardamos los parámetros de color y transparencia
GD.Begin(LINE_STRIP);
GD.ColorRGB(0xFFFFFF); //Color del arco
int x, y;
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > intervalo)
{
previousMillis = currentMillis;
valor=GD.random(0,359);
}
for (int i = 0; i <= valor; i++) {
x = 400 + 100 * cos(i * PI/180 );
y = 240 + 100 * sin(i * PI/180 );
GD.Vertex2f(16*x, 16*y); //Se ajustan las dimensiones en pantalla
}
GD.RestoreContext(); //Restauramos los parámetros de color y transparencia
GD.SaveContext(); //Guardamos los parámetros de color y transparencia
GD.ColorRGB(0xFFFFFF); //Color del texto
GD.cmd_text(0, 455, 26, 0, "Coded by chatGPT/FT81xmania"); //Texto del tÃtulo
GD.RestoreContext(); //Restauramos los parámetros de color y transparencia
GD.swap();
}