From 60f073ae22b1ea90f90168988cfc9043721b1209 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sun, 17 Mar 2024 13:24:14 +0200 Subject: [PATCH] color based on condition --- mapLoad/mapLoad.pde | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapLoad/mapLoad.pde b/mapLoad/mapLoad.pde index 7c7b036..ad8eed8 100644 --- a/mapLoad/mapLoad.pde +++ b/mapLoad/mapLoad.pde @@ -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); }