Color Lighten and Darken
Helper methods make it easy to lighten or darken colors.
ScottPlot.Plot myPlot = new();
Color color1 = Colors.Blue;
Color color2 = Colors.Blue;
for (int i = 0; i < 10; i++)
{
var circle1 = myPlot.Add.Circle(i, 3, 1);
var circle2 = myPlot.Add.Circle(i, 0, 1);
circle1.FillColor = color1;
circle2.FillColor = color2;
color1 = color1.Lighten(.2);
color2 = color2.Darken(.2);
}
// set outline style for all circles on the plot
foreach (var circle in myPlot.GetPlottables<ScottPlot.Plottables.Ellipse>())
circle.LineColor = Colors.Black;
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Color category
