How do you fill the area under a curve?

I’m working on an EQ that draws a path from a function and I want to fill in the area under that path with a different color than the background color. How would I do that?

Add two ghost points to your Path at the coordinates of the left and right bottom corners , close it and call Graphics.fillPath !

1 Like

Thanks! That worked perfectly! :smile: