Hi, I’m running into issues when trying to render a rather simple animation. It seems like multiple frames are being displayed simultaneously when only one instance should be seen. Please see this video for demonstration.
The paint loop is drawing a simple bezier path with three filled circles. Here is the paint method:
void Curve::Vertical::paint(Graphics& g)
{
g.setColour(Colours::white);
fillCircle(g, points.a, radius);
fillCircle(g, points.b, radius);
fillCircle(g, points.c, radius);
path = Path();
path.startNewSubPath(denormalize(points.a));
path.quadraticTo(denormalize(points.b), denormalize(points.c));
g.strokePath(path, PathStrokeType(1));
}
In this example repaint
is called periodically at 5Hz. I’ve tried the AnimatedAppComponent with no luck. Is there anything I should be doing differently to get this animation rendered smoothly?