color based on condition

This commit is contained in:
LinlyBoi
2024-03-17 13:24:14 +02:00
parent 13c405aa18
commit 60f073ae22

View File

@@ -32,6 +32,10 @@ void loadData() {
for (TableRow row : coords.rows()) {
float lng = row.getFloat("lng"); //value accessed by column name or index
float ltd = row.getFloat("ltd");
if (lng >= 500)
fill(220, 10, 20);
else
fill(10,220,20);
ellipse(lng, ltd, dotWidth, dotHeight);
}