public override void Paint() { // var img = new Image<Rgba32>((int)Math.Round(s2d.height * 1.0), s2d.height); // img.Mutate(x => { // x.DrawText(text.ToString(), this.Font, Brushes.Solid(Rgba32.Red), null, Vector2.Zero, new TextGraphicsOptions(true)); // x.Resize(s2d.width, s2d.height); // }); // s2d.CopyImage(img); s2d.RenderString(this.location, text.ToString(), color * Services.Sun.Brightness); }
public override void Paint() { if (allDepartures == null) { return; } var bestDeparture = stops.GetBestDeparture(allDepartures); s2d.RenderString(this.location, bestDeparture.Route.ToString() + bestDeparture.Terminal, stops.GetColorForDeparture(bestDeparture)); // TODO: render wait time indicator }