Changed some display values

This commit is contained in:
glax 2023-04-13 01:12:29 +02:00
parent d35aab9c39
commit 08ebc9a26b

View File

@ -34,15 +34,15 @@ public class Renderer
Color start = Color.FromArgb(0, 0, 255);
Color center = Color.FromArgb(255, 255, 0);
Color end = Color.FromArgb(255, 0, 0);
Color end = Color.FromArgb(0, 255, 0);
foreach (KeyValuePair<OsmNode, double> kv in gScoreDict)
{
double percentage = kv.Value / maxWeight;
double percentage = (kv.Value - minWeight) / (maxWeight - minWeight);
Brush b = new SolidBrush(GradientPick(percentage, start, center, end));
float x = (kv.Key.coordinates.longitude - minLon) * scaleFactor;
float y = (maxLat - kv.Key.coordinates.latitude) * scaleFactor;
g.FillEllipse(b, x, y, 4, 4);
g.FillEllipse(b, x, y, 2, 2);
}
Pen p = new Pen(Color.Red, 2);