Open netgfx opened 2 years ago
note that your screenshot is too small to see the code involved. Just drag-and-drop or clipboard paste a full size one into your post and it'll automatically get turned into a markdown link to the full size image, wiith the in-issue image resized to fit.
@Pomax Sorry the image was to show the moving circle not so much for the code as it spans over 2-3 files.
The code that drives the circle via getPointAt
can be found here: https://github.com/netgfx/Shapes-in-the-Dart/blob/4cdd1d4234121ecbdffd17e58d849eb8d03fdd50/flutter_shaders/lib/game_classes/TDEnemy.dart#L102
I'm using this library to create a path that consists of multiple curves, the issue is that when I draw the path using CustomPainter
cubicTo
And when I follow the path via percentages, they have a difference, especially on the
y
axis The issue can be seen here: