Path getTrianglePath(double x, double y) { return Path() ..moveTo(0, 0) ..lineTo(x, 0) ..lineTo(x, y) ..lineTo(0, 0); }