Color Interpolation
Colors can be mixed to createa range of colors. This strategy uses linear RGB interpolation.
ScottPlot.Plot myPlot = new();
for (int i = 0; i <= 10; i++)
{
double fraction = (double)i / 10;
double x = i;
double y = Math.Sin(Math.PI * 2 * fraction);
var circle = myPlot.Add.Circle(x, y, 2);
circle.FillColor = Colors.Blue.MixedWith(Colors.Green, fraction);
circle.LineColor = Colors.Black.WithAlpha(.5);
}
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Miscellaneous category
